gratipay / grtp.co

Gratipay Widgets + API
https://grtp.co/
MIT License
26 stars 19 forks source link

Release/Deploy 0.1.4 #93

Closed techtonik closed 9 years ago

techtonik commented 9 years ago

Because 0.1.3 is already deployed in #83, we need to tag/push another release to make Blogger gadgets available. http://grtp.co/v1/ should show them.

techtonik commented 9 years ago

Deployment failed, and second push doesn't do anything.

...
remote: └── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1)
remote: Warning: Task "minify" not found. Use --force to continue.
remote:
remote: Aborted due to warnings.
To grtp@grtp.co:production
   e37a36f..69f7ea4  master -> master
techtonik commented 9 years ago

This is the hook script from .git/hooks/post-receive that needs to be deciphered:

#!/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 .
techtonik commented 9 years ago

Changed to:

#!/bin/sh
cd ..
# clean app all local changes
env -i git reset --hard

# wipe out node_modules and reinstall
make clean
make build

# normalize permissions - shouldn't be needed, but here in case it becomes necessary
# chmod -Rf g+w .
techtonik commented 9 years ago
...
./node_modules/.bin/grunt build
Running "uglify:dist" (uglify) task
File www/v1.js created: 1.45 kB → 575 B
File www/v1/api.js created: 13.92 kB → 4.29 kB

Running "htmlmin:dist" (htmlmin) task
Minified www/v1/widgets/button.html 1.95 kB → 1.95 kB
Minified www/v1/widgets/default.html 2.3 kB → 2.3 kB
Minified www/v1/widgets/giving.html 2.29 kB → 2.29 kB

Done. )

chadwhitacre commented 9 years ago

@techtonik So is this closable?

techtonik commented 9 years ago

@whit537 yes. Just hit the wrong button. =)