You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TerranceN edited this page Nov 26, 2012
·
6 revisions
Using ssh to access instances
This section will show you how to ssh into an instance and set up the environment so you can run commands with manage.py
Setting up your ssh key
In the SecondFunnel git repo there is a file called ssh_keys. Add your public key to this file then deploy. The deployment process automatically appends ssh keys to the authorized keys file on the instance.
Getting into an instance
In the AWS Console, go to the EC2 page (at the top of the screen: Services -> EC2), click instances on the left navigation bar, then click your instance. Find the instance's public DNS from the options pane that appears.
Now open a terminal and type in ssh ec2-user@<public_dns_from_above> You should now be on the instance.
Setting up the environment
Our code is stored in /opt/python/bundle/#/app/ where # is the highest numbered directory inside bundle (eg. /opt/python/bundle/7/app/). Once in that directory, run the following: