-
Make sure python 2.7 is installed:
python --version
-
Make sure pip is installed
brew install pip
-
Install the aws command line tool
pip install awscli
-
Install the elastic beanstalk command line tool
brew install awsebcli
-
Navigate into the edcast repo's folder
-
run
eb init
- For the region, choose the first option (us-east-1)
- ask a supervisor for access & secret keys.
- ask a supervisor which environment you should have access to.
-
Ask a supervisor for a
cmprod.pem
file and move it into the~/.ssh
folder. -
Run
chmod 600 ~/.ssh/cmprod.pem
-
Run
eb ssh
and typeyes
when it asks if you would like to add the key to your keychain. -
Once connected via SSH, to access the application's source code, perform the following steps
sudo docker ps
2. Copy the desired value from theCONTAINER ID
column- Run
sudo docker exec -it $CONTAINER_ID rails c
using the copied value.