method handlers

This commit is contained in:
ntr
2018-09-15 14:11:23 +10:00
parent 2b30c87ef8
commit 7a174736f6
7 changed files with 89 additions and 29 deletions
+3 -3
View File
@@ -2,10 +2,10 @@
sudo apt-get install -y postgresql postgresql-contrib
sudo service postgresql start
sudo -u postgres dropdb cryps
sudo -u postgres createdb cryps
sudo -u postgres echo "craftbeer" > .pgpass
sudo -u postgres echo "craftbeer" > /var/lib/postgres/.pgpass
sudo -u postgres createuser --encrypted cryps
npm i
npm i -g knex
knex migrate:latest
npm run migrate
Regular → Executable
+1
View File
@@ -4,6 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"migrate": "knex migrate:latest",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",