Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
Your description here
Create a pg database called
firstAm_development and configure the
config/database.yml to provide the credentials to access the table.
shards update amber migrate up
To run the demo:
$ shards build src/firstAm.cr ./firstAm
This will start an instance of postgres, migrate the database, and launch the site at http://localhost:3000
docker-compose up -d
To view the logs:
docker-compose logs -f
Note: The Docker images are compatible with Heroku.