Sample application for Crystal programming language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
tpl
.gitignore
.travis.yml
LICENSE
README.md
docker-compose.yml
scalingo.json
shard.yml

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/