Logging in to production server
- make sure you have a unix account that uses your ssh key
- make sure you can login using ssh keys
- remove old entries from ~/.ssh/known_hosts if necessary
It's necessary to remove the known_hosts entries because we're running on EC2 and the server that vidsf.com points to changes, so the host keys change. When the host keys change ssh freaks out and gives you a scary warning. We should fix that by having consistent host keys. It's on the todo list.
ssh vidsf.com
You can modify your ssh config to tell it to use the ssh key. Make sure the file ~/.ssh/config contains these lines:
Host vidsf.com
IdentityFile ~/.ssh/vidsf.pem
You can add User jaybuff if your local username is different than your username on vidsf.com.
Check out the code
Run svn co http://vidsf.svn.beanstalkapp.com/vidsf/trunk/ ~/vidsf
If you've previously done this and the ~/vidsf directory is already there you can just run cd ~/vidsf; svn up to get the latest code.
Install the code
Run cd ~/vidsf; sudo python setup.py install
Restart apache
If you're only making changes to .html, .png, .css, etc files then you won't need to restart apache. Otherwise, you'll need to run this command to make your changes to python code live: sudo /etc/init.d/apache2 restart