Last active
July 26, 2022 14:20
-
-
Save gabor-m/d4f4e91de3ffa007805bf386a8f576ec to your computer and use it in GitHub Desktop.
This file contains hidden or 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
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
command -v nvm | |
nvm install node | |
node -v | |
npm -v | |
npm install pm2 -g | |
pm2 -v | |
pm2 startup | |
mkdir cloud-backup | |
cd cloud-backup | |
curl https://cloud.euroadvance.hu/backup.js > app.js | |
node app.js | |
pm2 start "node app.js" | |
pm2 list | |
pm2 save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment