forked from cimon-io/billet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cimon.yml
46 lines (44 loc) · 1.13 KB
/
.cimon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
postgresql:
from: postgres
cached_postgresql:
from: postgres
cache:
- /var/lib/postgresql/data
rails:
from: ruby:2.3.1
cache:
- /bundle
- /app/public/assets
- /app/public/uploads
env:
- DATABASE_URL=postgres://postgres:[email protected]:5432/db
build:
- apt-get update
- apt-get install -y libqt4-dev pkg-config
- apt-get install -y nodejs mysql-client 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: &server
except: master
prepare:
- bundle --version
- bundle config --local path /bundle
- bundle config
- bundle install
- bundle exec rake db:create db:migrate db:seed
- bundle exec rake assets:precompile
service: rails
dependencies: [postgresql]
folder: /app
cmd: ./bin/rails server -p $PORT
port: 80
env:
- RAILS_ENV=production
- RACK_ENV=production
- PORT=80
staging:
<<: *server
except: []
only: master
dependencies: [cached_postgresql]