- Check spreadsheet for up-to-date IP & key info from dlts devops
- Request copy of correct pem file from dlts dev ops (in our case
dlts-aws-sdr.pem
) and download it. - Copy the pem key from its current location (e.g., Downloads) to the path Capistrano (our deploy tool) expects using the following command:
cp ~/Downloads/dlts-aws-sdr.pem ~/.ssh/dlts-aws-sdr.pem
- Protect the pem key by restricting its permissions:
chmod 400 ~/.ssh/dlts-aws-sdr.pem
- Make sure you are on NYU VPN
- Make sure you followed "Set up SSH access" above
- Run
ssh -i <path-to-pem> <user>@<IP-adress>
; in our case:ssh -i ~/.ssh/dlts-aws-sdr.pem ubuntu@<staging-IP>
- Use command
exit
to exit the EC2's shell and return to your local machine
- Make sure you followed "Set up SSH access" above
- Clone the spatial data repository repo and cd into it
- Install dependenies with
bundle install
- Run
cap staging deploy