HOST : 34.121.19.181
PORT : 22
USER : <your-given-user-for-ssh-key>
Note : For Login you must have the .pem/ssh key file.
Below steps are only for the initial setup.
- Install PM2 with command
npm install -g pm2. - Start Process with command
ENV_PATH=/etc/myapp/.env pm2 start
Below deployment steps is only for AWS EC2 instance 34.121.19.181.
- Login to server via any ssh client.
- Change directory (cd) to
/var/www/html/admin.wonderbites.index. - Run git command to pull the latest changes/code (
git pull). - In case you find any npm depencies missing then install them via
yarn install. - Now generate build files using command
yarn build. - You are all done!
- Clone the repo.
- Install the dependencies by running
yarnORyarn installORnpm install. - Duplicate
.env.examplefile and name it.env. Update the environment variable in.envaccording to your development setup. - If you are interested to run the tests make sure to create
.env.testfile from.envOR.env.example.