- pm2 start the_path_of_app.js
- pm2 stop pm2_app_id
- pm2 restart pm2_app_id
- pm2 delete pm2_app_id
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
openssl rsa -in key.pem -out newkey.pem && mv newkey.pem key.pem
Or using the commands below: from this link:
- Create the private key:
openssl genrsa -out key.pem 1024
- Create the "Certificate Signing Request":
openssl req -new -key key.pem -out csr.pem
cmd-i and then click Copy Preferences to Profile.
reference link
- Add old remote server to the existing repository
git remote add <old-remote-server-name> <old-remote-server-address>
- Pull the branch of old remote server to the local
git pull <old-remote-server-name> <remote-branch-name>
- Push the branch to the new remote server