Last active
October 26, 2015 09:10
-
-
Save aratak/9b8dec4e1ccb8fe72690 to your computer and use it in GitHub Desktop.
cimon configuration for rails project with remote database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
rails: | |
from: ruby:2.1.2 | |
cache: | |
- /bundle | |
- /app/public/assets | |
- /app/public/uploads | |
build: | |
- apt-get update | |
- apt-get install -y libqt4-dev pkg-config | |
- apt-get install -y nodejs postgresql-client sqlite3 | |
- apt-get install -y curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev libxml2-dev libxslt-dev | |
- gem install bundler | |
server: | |
prepare: | |
- bundle install --path /bundle | |
- bin/rake assets:precompile | |
service: rails | |
folder: /app | |
cmd: ./bin/rails server -p $PORT | |
port: 80 | |
env: | |
- RAILS_ENV=production | |
- RACK_ENV=production | |
- PORT=80 | |
- DATABASE_URL=postgres://postgres:[email protected]:5432/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment