- Your app is named 'something' and that your staging app is named 'something-staging'. This seems to be a common thing.
- You only have a single staging HEROKU_POSTGRESQL databae.
Totally untested. 😏
- Grabs the current db name
git clone git://github.com/Netflix/asgard.git | |
cd asgard | |
<modify some files> | |
<add Procfile> | |
heroku create <my>-asgard-test | |
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-grails.git | |
heroku addons:add heroku-postgresql:basic (dev may work) | |
heroku pg:promote HEROKU_POSTGRESQL_<COLOR>_URL |
puts "Hello from gist.github.com" |
APP=<myapp> | |
heroku logs --tail --ps run -a $APP & | |
heroku run:detached "curl -s https://raw.github.com/gist/4121163/74722afb2fb6b40accdf01b62782c0b1e3b0f552/gistfile1.txt | ruby" -a $APP |
CREATE INDEX on logs (source); | |
CREATE INDEX on logs (process); | |
CREATE INDEX on logs (drain); | |
CREATE INDEX on logs (timestamp); | |
CREATE INDEX on logs (severity); | |
CREATE INDEX on logs (facility); |
#.... | |
before_fork do |server, worker| | |
defined?(ActiveRecord::Base) and | |
ActiveRecord::Base.connection.disconnect! | |
end | |
end | |
after_fork do |server, worker| | |
defined?(ActiveRecord::Base) and |
package main; | |
// build +cgo | |
import "fmt" | |
/* | |
#include <unistd.h> | |
*/ | |
import "C" |
package main | |
// build +cgo | |
import ( | |
"fmt" | |
"os" | |
"unsafe" | |
) |
package utils | |
import "fmt" | |
func main() { | |
for line := range FileLineChannel('/etc/hosts') { | |
fmt.Println(line) | |
} | |
} |
Here are some things I have learned along the way.
Last Updated: 2013-02-08
Original Audience: Hack Reactor