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
# linux | |
PGPASSWORD="password" pg_dump -h host -p port -U username database > file.sql | |
# windows | |
PGPASSWORD=password&& pg_dump -h host -p port -U username database > file.sql | |
# alternative | |
pg_dump --dbname=postgresql://username:password@host:port/database > file.sql | |
# restore |
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
find the appropriate file for your system on https://nodejs.org/en/download/ | |
(if you're not sure whether you should use 32-bit or 64-bit, follow instructions here: https://www.computerhope.com/issues/ch001121.htm) | |
copy the link to the appropriate file. in the example below we're using the link for the Linux 64-bit binary. if you're using a different file, substitute as necessary. | |
on the command line, do the following series of commands one at a time: | |
cd /tmp | |
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz | |
tar -xf node-v6.10.3-linux-x64.tar.xz |
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
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |