ec2-webapp icon indicating copy to clipboard operation
ec2-webapp copied to clipboard

Workflow 1 server documentation issue

Open asabaylus opened this issue 12 years ago • 0 comments

Im a bit of a n00b so maybe I'm missing something.

When attempting to run through the workflow 1 an error message displayed when remotely restarting the services

cd src/myapp
git commit ...
ssh -i ~/.ssh/myapp.pem [email protected]:/var/myapp/update restart
# ssh: Could not resolve hostname myapp:/var/myapp/update: nodename nor servname provided, or not known

Changing the SSH command to the following worked for me.

cd src/myapp
git commit ...
git push origin master
ssh -i ~/.ssh/myapp.pem ubuntu@myapp '/var/performance/update restart' 
# some stats ...

I think adding a simple post commit hook to execute the update restart on my local makes this brain dead simple.

Thanks so much for this excellent project!

asabaylus avatar Dec 21 '11 17:12 asabaylus