Maintenance: Switch from scheduler.rb to background-services.rb
This commit is contained in:
parent
b308627f3d
commit
c43b89fcb4
@ -155,9 +155,9 @@ if [ "$1" = 'zammad-scheduler' ]; then
|
|||||||
|
|
||||||
cd "${ZAMMAD_DIR}"
|
cd "${ZAMMAD_DIR}"
|
||||||
|
|
||||||
echo "starting scheduler..."
|
echo "starting background services..."
|
||||||
|
|
||||||
exec bundle exec script/scheduler.rb run
|
exec bundle exec script/background-services.rb start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ if [ "$1" = 'builder' ]; then
|
|||||||
bundle install
|
bundle install
|
||||||
sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: zammad-postgresql\n#g' < contrib/packager.io/database.yml.pkgr > config/database.yml
|
sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: zammad-postgresql\n#g' < contrib/packager.io/database.yml.pkgr > config/database.yml
|
||||||
sed -i "/require 'rails\/all'/a require\ 'nulldb'" config/application.rb
|
sed -i "/require 'rails\/all'/a require\ 'nulldb'" config/application.rb
|
||||||
sed -i 's/.*scheduler_\(err\|out\).log.*//g' script/scheduler.rb
|
sed -i 's/.*scheduler_\(err\|out\).log.*//g' script/background-services.rb
|
||||||
touch db/schema.rb
|
touch db/schema.rb
|
||||||
bundle exec rake assets:precompile
|
bundle exec rake assets:precompile
|
||||||
rm -r tmp/cache
|
rm -r tmp/cache
|
||||||
|
Loading…
Reference in New Issue
Block a user