forked from discourse/discourse
-
Notifications
You must be signed in to change notification settings - Fork 3
/
boxfile.yml
72 lines (66 loc) · 1.26 KB
/
boxfile.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
run.config:
engine: ruby
extra_packages:
- git
- nodejs
- nginx
- ImageMagick
- optipng
- jpegoptim
- gifsicle
- jhead
extra_steps:
- yarn install
extra_path_dirs:
- node_modules/.bin
cache_dirs:
- .bundle
- vendor/bundle
- node_modules
#
deploy.config:
before_live:
web.main:
# - bundle exec rake db:setup_or_migrate
- mkdir -p tmp/ember-rails
- touch tmp/ember-rails/ember.js
- touch tmp/ember-rails/ember-data.js
- chmod +w tmp/ember-rails/*
- bundle exec rake db:migrate RAILS_ENV=production
- bundle exec rake assets:precompile --trace RAILS_ENV=production PRECOMPILE=true
#
web.main:
start:
nginx: nginx -c /app/config/nginx.conf
puma: bundle exec puma -C /app/config/puma.rb
writable_dirs:
- log
- plugins
- public
network_dirs:
data.assets:
- public/assets
- tmp
log_watch:
rails[discourse]: log/production.log
puma: log/puma.log
#
worker.main:
start: bundle exec sidekiq
writable_dirs:
- log
- public
network_dirs:
data.assets:
- tmp
log_watch:
sidekiq: log/sidekiq.log
#
data.db:
image: nanobox/postgresql:9.4
#
data.assets:
image: nanobox/unfs
#
data.redis:
image: nanobox/redis