Steps to deploy Node.js to VPS using PM2 and Github Actions
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
from django.db.transaction import * # NOQA | |
from django.utils.decorators import ContextDecorator | |
LOCK_MODES = ( | |
'ACCESS SHARE', | |
'ROW SHARE', | |
'ROW EXCLUSIVE', | |
'SHARE UPDATE EXCLUSIVE', | |
'SHARE', |
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
#!/bin/bash | |
###--- Basics ---### | |
sudo apt-get update | |
sudo apt-get install -y tree software-properties-common git-core openssl libssl-dev git vim curl zsh | |
###--- Node ---### | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 |