Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
A new project using Amber Framework
Install back-end and front-end dependencies.
shards install
npm install
Configure the config/environments/development.yml
and set the database_url
with your credentials to your database.
Then:
amber db create migrate
To build crystal files:
amber watch
To build assets:
npm run watch
To setup AMBER_ENV
:
export AMBER_ENV=production
To build a production release:
shards build --production --release tile
To build production assets:
npm run release
To use encrypted environment settings see documentation
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.