Skip to main content

Deploying Admin to AWS manually

Pre-requisites 

Project cloned and installed using this guide - Installation

 

Creating build

cd <webapp directory>
npm install
npm run build

Transferring the build to AWS

Make sure asquared.pem file is in the project directory and remember not commit this file as its a sensitive info

scp -i asquared.pem -r build/* ubuntu@ec2-18-209-172-126.compute-1.amazonaws.com:/home/ubuntu/build

Deploying the build to AWS

ssh -i "asquared.pem" ubuntu@ec2-18-209-172-126.compute-1.amazonaws.com
cd build
pm2 delete index
authbind --deep pm2 start
pm2 save