Hey guys, I wonder if there is a way to run ./launcher rebuild app
a bit faster. Right now it takes 6-9 minutes to do the whole stuff and i'd like to skip some stuff that looks a bit useless:
These three commands takes a lot of time (about 20-30-60 sec each)
cd /var/www/discourse && chown -R discourse /var/www/discourse
cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development'
cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
Compiling assets for each locale is also take about a minute, uglifying js is also takes some time.
Aaaaanyhooow, I was hoping there is a way of semi-rebuilding (?!) the app a bit faster than that. I understand the need of running all of these when you're installing an update or a new plugin, but sometimes I only need a very quick „restart” for more... special cases:
- update of a SSL cert
- the other day i tried to make it play nice with other sites (following this article) and i had to rebuild couple of times.
PS: time ./launcher rebuild app --skip-prereqs
is giving only negligible improvements:
real 5m27.461s
user 0m1.027s
sys 0m0.652s
Thanks!