Skip to content

Commit

Permalink
fix npm run download-db script
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Oct 2, 2015
1 parent 61369a1 commit 6ec50ea
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ secret/*

bundle.js
node_modules/
out/*
tmp/
out/
db/
3 changes: 1 addition & 2 deletions .nodemonignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.DS_Store
tmp/reload.txt

/out/*
/.git/*
/node_modules/*
npm-debug.log

/client/*
/stylus/*
/stylus/*
4 changes: 0 additions & 4 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion config-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var path = require('path')
* @type {String}
*/
exports.root = __dirname
exports.tmp = path.join(exports.root, 'tmp')
exports.out = path.join(exports.root, 'out')

/**
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@
"build": "mkdir -p out && npm run build-js && npm run build-css && node ./bin/postbuild.js",
"build-css": "stylus -u nib stylus/main.styl -o out/ --include-css -c && node ./bin/transform-css.js out/main.css",
"build-js": "browserify client/main.js | uglifyjs -c warnings=false -m > out/main.js",
"db-local": "mkdir -p tmp/db && mongod --dbpath tmp/db",
"db-download": "rsync -a -O -v --exclude \"sessions.bson\" --exclude \"sessions.metadata.json\" -e \"ssh -p 44444\" feross@athena:\"/home/feross/backups/mongo/daily/studynotes/\" db/dump && (mongod --dbpath db & (sleep 2 && mongorestore --drop --host 127.0.0.1:27017 --db studynotes db/dump))",
"db-local": "mongod --dbpath db",
"db-tunnel": "ssh -L 27017:localhost:27017 -N feross@athena",
"secret-download": "rsync -a -O -v --delete -e \"ssh -p 44444\" feross@future.feross.net:\"/home/feross/www/studynotes.org/secret/\" secret/",
"secret-upload": "rsync -a -O -v --delete -e \"ssh -p 44444\" secret/ feross@future.feross.net:\"/home/feross/www/studynotes.org/secret/\"",
"secret-download": "rsync -a -O -v --delete -e \"ssh -p 44444\" feross@future:\"/home/feross/www/studynotes.org/secret/\" secret/",
"secret-upload": "rsync -a -O -v --delete -e \"ssh -p 44444\" secret/ feross@future:\"/home/feross/www/studynotes.org/secret/\"",
"size": "npm run build && npm run size-css && npm run size-js",
"size-css": "cat out/main.css | gzip | wc -c",
"size-js": "cat out/main.js | gzip | wc -c",
Expand Down

0 comments on commit 6ec50ea

Please sign in to comment.