{
client: 'pg',
connection: {
host: process.env.DB_HOST,
port: process.env.DB_PORT,
git clone [email protected]:....git
fails with:
Permissions 0644 for '/root/.ssh/id_rsa' are too open.
https://pm2.keymetrics.io/docs/usage/startup/
npm install -g pm2@latest
pm2 startup
Saving current process list
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-debian-10 https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-debian-10
cd ~
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
node -v
For when you don't want 0.1 + 0.2 to equal 0.30000000000000004 use https://github.com/nefe/number-precision
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
# post_loc.txt contains the json you want to post | |
# -p means to POST it | |
# -H adds an Auth header (could be Basic or Token) | |
# -T sets the Content-Type | |
# -c is concurrent clients | |
# -n is the number of requests to run in the test | |
ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 "http://example.com/api/v1/locations/" |