Fabric doesn't launch Nginx remotely
- by endofu
I want to be able to start and stop an nginx server on an Ubuntu EC2 instance with Fabric.
I have this two scripts in my fabfile.py:
def start_nginx():
sudo('/etc/init.d/nginx start')
#also tried this: run('sudo /etc/init.d/nginx start')
def stop_nginx():
sudo('/etc/init.d/nginx stop')
The start_nginx() seemingly runs without…