mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
a8e81729fb
This better matches how Pony.fm is deployed in production and avoids issues with the database being reconnected in the middle of a database transaction.
19 lines
657 B
Bash
Executable file
19 lines
657 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
echo "Updating config files and restarting services..."
|
|
echo
|
|
|
|
mkdir -p /vagrant/storage/app/datastore
|
|
|
|
sudo cp /vagrant/vagrant/pony.fm.nginx.config /etc/nginx/nginx.conf &
|
|
sudo cp /vagrant/vagrant/pony.fm.nginx.site.config /etc/nginx/sites-enabled/pony.fm &
|
|
sudo cp /vagrant/vagrant/php-overrides.ini /etc/php/7.0/fpm/99-overrides.ini &
|
|
sudo cp /vagrant/vagrant/pony.fm.redis.config /etc/redis/redis.conf &
|
|
sudo cp /vagrant/vagrant/pony.fm.supervisor.config /etc/supervisor/conf.d/pony.fm.conf &
|
|
wait
|
|
|
|
sudo supervisorctl update &
|
|
sudo service elasticsearch restart &
|
|
sudo service nginx restart &
|
|
sudo service php7.0-fpm restart &
|
|
wait
|