File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 61
61
PRECOMPILE_ON_BOOT=1
62
62
fi
63
63
if [ -f /usr/local/bin/create_db ] && [ "$CREATE_DB_ON_BOOT" = "1" ]; then /usr/local/bin/create_db; fi;
64
- if [ "$MIGRATE_ON_BOOT" = "1" ]; then su discourse -c 'bundle exec rake db:migrate'; fi
65
- if [ "$PRECOMPILE_ON_BOOT" = "1" ]; then SKIP_EMBER_CLI_COMPILE=1 su discourse -c 'bundle exec rake assets:precompile' ; fi
64
+ if [ "$MIGRATE_ON_BOOT" = "1" ]; then su discourse -c 'bundle exec rake db:migrate' || exit 1 ; fi
65
+ if [ "$PRECOMPILE_ON_BOOT" = "1" ]; then su discourse -c 'bundle exec rake maxminddb:refresh assets:precompile:css' || exit 1 ; fi
66
66
LD_PRELOAD=$RUBY_ALLOCATOR HOME=/home/discourse USER=discourse exec thpoff chpst -u discourse:www-data -U discourse:www-data bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb
67
67
68
68
- file :
@@ -215,13 +215,13 @@ run:
215
215
tag : build
216
216
hook : assets_precompile_build
217
217
cmd :
218
- - su discourse -c 'bundle exec rake assets:precompile:build '
218
+ - su discourse -c 'SKIP_DB_AND_REDIS=1 bundle exec rake assets:precompile'
219
219
- exec :
220
220
cd : $home
221
221
tag : precompile
222
222
hook : assets_precompile
223
223
cmd :
224
- - su discourse -c 'SKIP_EMBER_CLI_COMPILE=1 bundle exec rake themes:update assets:precompile'
224
+ - su discourse -c 'bundle exec rake themes:update maxminddb:refresh assets:precompile:css '
225
225
- replace :
226
226
tag : precompile
227
227
filename : /etc/service/unicorn/run
You can’t perform that action at this time.
0 commit comments