- run command
export PORTFOLIO_ENV=...
- gitignored .env file with the following:
MAILGUN
: Mailgun API keyDBNAME
-
nvm install
-
nvm use
-
yarn install
-
sudo mongod --fork --logpath /var/log/mongodb/mongod.log
-
sudo systemctl enable redis-server
-
sudo systemctl start redis-server
-
echo '127.0.1.1 portfolio' | sudo tee --append /etc/hosts
-
sudo cp ./deploy/portfolio.conf /etc/nginx/conf.d/
-
sudo service nginx stop
-
sudo service nginx start
-
nvm exec npm start
Preface with nvm exec