2015-09-12 14:56:09 -07:00
|
|
|
#!/usr/bin/env bash
|
2015-12-20 10:30:51 -08:00
|
|
|
|
2016-07-09 17:59:03 -07:00
|
|
|
echo "Updating config files and restarting services..."
|
|
|
|
echo
|
2015-04-11 20:22:15 -05:00
|
|
|
|
2016-07-09 17:59:03 -07:00
|
|
|
mkdir -p /vagrant/storage/app/datastore
|
2015-04-11 20:22:15 -05:00
|
|
|
|
2016-07-09 17:59:03 -07:00
|
|
|
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 &
|
2016-12-24 18:08:33 -08:00
|
|
|
sudo cp /vagrant/vagrant/php-overrides.ini /etc/php/7.0/cli/conf.d/99-overrides.ini &
|
|
|
|
sudo cp /vagrant/vagrant/php-overrides.ini /etc/php/7.0/fpm/conf.d/99-overrides.ini &
|
2016-07-09 17:59:03 -07:00
|
|
|
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
|
2015-04-11 20:22:15 -05:00
|
|
|
|
2016-08-15 09:49:53 -07:00
|
|
|
sudo service supervisor start
|
|
|
|
|
2016-07-09 17:59:03 -07:00
|
|
|
sudo supervisorctl update &
|
|
|
|
sudo service elasticsearch restart &
|
|
|
|
sudo service nginx restart &
|
|
|
|
sudo service php7.0-fpm restart &
|
|
|
|
wait
|