Skip to content

Instantly share code, notes, and snippets.

View 7iquid's full-sized avatar
💭
Open For Contract

tavs 7iquid

💭
Open For Contract
View GitHub Profile
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

My Docker command list

docker

  • docker exec -it mysql mysql -p enter inside the running mysql container
  • docker exec -i some_mysql_container mysql -uroot -pdefaultpassword enter inside the running mysql container with pre config
  • docker exec -i 5a7c57bb919b mysql -uroot -pdefaultpassword
  • sudo docker exec -it 5a7c57bb919b bash