Closed chadwhitacre closed 10 years ago
$ git remote add prod gttp@gttp.co:production/.git
Then git push prod
. I'm getting a failure:
remote: Warning: Task "minjson" not found. Use --force to continue.
remote:
remote: Aborted due to warnings.
We have a post-receive hook (at production/.git/post-receive
) that updates the working copy with the just-pushed changes, and then runs some grunt tasks:
#!/bin/sh
cd ..
env -i git reset --hard
# wipe out node_modules and reinstall
rm -rf node_modules
npm install .
# minify JS and JSON
npm install grunt-cli
./node_modules/grunt-cli/bin/grunt minify
# normalize permissions - shouldn't be needed, but here in case it becomes necessary
# chmod -Rf g+w .
I am looking to work on this locally and I don't have npm
installed apparently?
$ node --version
v0.10.18
$
locate npm
finds stuff. What is up?
"Get the pkg. npm is in it."
$ node --version
v0.10.31
$ npm --version
1.4.23
$ *shrug*
$ make
npm install
-
Okay! I can reproduce Task "minjson" not found.
locally.
P.S. @kaguillera This ticket is a good example of debugging in public, as we were talking about yesterday. :-)
So either we drop the call to minjson
, or we implement that call. How much work is it to implement the call?
Also, why is this broken? Any ideas, @rummik?
Okay! We moved from JSON widgets to HTML in 6b0be7b2ba87e07b130b3956e5c02e1fc23b8d2b. But minjson
was only partially removed. The answer is to remove the rest of it.
Done, without errors.
Blam. :-)
Documentation in ae3a0e9833533e7d3cd3de6b9dedcdd2290a8fe6.
I've never done a gttp.co deployment before. Time to figure this out and update the README.