Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
tpl
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Sample Crystal application

Running Locally

First, you need to have a working crystal environment:

http://crystal-lang.org/docs/installation/

You can specify the listening port using the --port flag

Test

crystal src/scalingo01.cr -- --port 9090

Build

crystal build src/scalingo01.cr --release

Execute

./scalingo01 --port 9090

Deploying on Scalingo

Create an application on https://scalingo.com, then:

git remote add scalingo git@scalingo.com:<name_of_your_app>.git

Set the BUILDPACK_URL environement variable to https://github.com/crystal-lang/heroku-buildpack-crystal.git.

You can do it using the web dashboard, select your application, go to the Environment tab and add :

BUILDPACK_URL=https://github.com/crystal-lang/heroku-buildpack-crystal.git

If you want to do it using the scalingo cli interface juste type :

scalingo -a <name_of_your_app> env-set BUILDPACK_URL=https://github.com/crystal-lang/heroku-buildpack-crystal.git

Next you'll need to push it to scalingo :

git push scalingo master

And that's it!

The application is running at this url: https://sample-crystal.scalingo.io

Deploy in one click

Deploy to Scalingo

Links

http://crystal-lang.org/

About

Sample application for Crystal programming language

Resources

License

Releases

No releases published

Packages

No packages published