#run PM2 with env file set
-pm2 start npm --name Guardians -- dev --env DEVELOPMENT -pm2 start npm --name Guardians -- start --env STAGING -pm2 start npm --name Guardians -- start --env PRODUCTION
#monitor pm2 pm2 monit
-pm2 list
model Users { | |
id String @id @default(auto()) @map("_id") @db.ObjectId | |
name String | |
applicant Applicant? | |
reviewed_applicant Applicant[] @relation("ParentChild") | |
} | |
model Applicant { | |
id String @id @default(auto()) @map("_id") @db.ObjectId | |
status Boolean |
#run PM2 with env file set
-pm2 start npm --name Guardians -- dev --env DEVELOPMENT -pm2 start npm --name Guardians -- start --env STAGING -pm2 start npm --name Guardians -- start --env PRODUCTION
#monitor pm2 pm2 monit
-pm2 list
docker exec -it mysql mysql -p
enter inside the running mysql containerdocker exec -i some_mysql_container mysql -uroot -pdefaultpassword
enter inside the running mysql container with pre configdocker exec -i 5a7c57bb919b mysql -uroot -pdefaultpassword
sudo docker exec -it 5a7c57bb919b bash