Skip to content

Commit

Permalink
#000 | Source profile before starting app
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jul 7, 2023
1 parent e8cad9c commit 0894874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ EOF

#Run server
sudo su - avni-media-user << EOF
source ~/.profile ###Env variables are configure from here
cd ~/avni-media/server
nvm use v19.8.1
pm2 start ./dist/main.js --name "avni-media-server" -p 3010
EOF

#Build client
sudo su - avni-media-user << EOF
source ~/.profile ###Env variables are configure from here
cd ~/avni-media/client
nvm use v19.8.1
pm2 start npm --name "avni-media-client" -- run start -- -p 3000
Expand Down

0 comments on commit 0894874

Please sign in to comment.