Wednesday, April 01, 2015

Upgrade to Cedar 14 on Heroku

Use with caution, this does not test to be sure your app will work with the new stack:
$ heroku stack:set cedar-14
$ git commit --allow-empty -m "Upgrading to Cedar-14"
$ git push heroku master

You can rollback with:

$ heroku releases
$ heroku rollback [previous release]
$ heroku stack:set cedar

[previous release] is a release number like v12 taken from the output of the heroic releases command.

From: https://devcenter.heroku.com/articles/cedar-14-migration

Generate a new CSR from existing CRT and KEY

$ openssl x509 \
       -in domain.crt \
       -signkey domain.key \
       -x509toreq -out domain.csr

Tuesday, March 31, 2015

APIs (useful links)

Use this to get a handle on using it with curl
https://gist.github.com/caspyin/2288960

Once you have that down use this to figure out the JSON data structure for your GET/POST requests
https://www.getpostman.com/

Great tutorial on creating you own API in a few minutes with node. (I used coffee script)
https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4

Great site for converting js into coffee script
http://js2.coffee

Great writeup on API authentication (with code samples) I used the basic auth with ssl.
https://stormpath.com/blog/the-problem-with-api-authentication-in-express/