You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#new tab
sudo mongod --config /usr/local/etc/mongod.conf
#check it and if needs kill previous process
lsof -t -i tcp:27017
#sudo kill -9 :pid
#add to etc/host
#code /etc/hosts add 127.0.0.1 mongo
Prebuild packages
#new tab
yarn prebuild
Run backend
#new tab
yarn backend:dev
#new tab
yarn watch
Run frontend
#new tab
yarn frontend:dev
Deploy to staging
#ask for pem HoneySecond.pem and do right permissions for file
sudo chmod -R 0400 ./HoneySecond.pem
#connect remotely to ec2
ssh -i "./HoneySecond.pem" [email protected]
#screen init
screen -x
#stop current process
CTRL + C
#update from git
git fetch --all
git reset --hard origin/develop
yarn prebuild
yarn backend:build
yarn --cwd frontend start
# Detach screen, open new tab
CTRL + A + N
#stop current process
CTRL + C
#use right env config
cp .env.staging .env
yarn --cwd backend start
#hult server
CTRL + A and then D
#if backend is not compiled do:
#yarn --cwd frontend build:backend
#npx babel src --out-dir ../backend/lib --presets=next/babel
yarn backend:build
SSL Integration for dev.lateilerdumiel.com
#look to REQUEST-149
brew install certbot
#no need , sudo certbot --manual --preferred-challenges dns certonly -d dev.latelierdumiel.com
cd /usr/local/nginx
sudo mkdir /etc/nginx/sites-enabled
sudo mkdir /etc/nginx/sites-available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters