~/dev/bb[master] ★ heroku create
Creating shrouded-wave-4655... done, stack is cedar
http://shrouded-wave-4655.herokuapp.com/ | git@heroku.com:shrouded-wave-4655.git
Git remote heroku added
~/dev/bb[master] ★ git push heroku master
Counting objects: 25, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (25/25), 2.83 KiB, done.
Heroku now offers beta support for OpenJDK 7, as well as an updated version of OpenJDK 6. Support for both JDKs are available in a new buildpack. OpenJDK 6 is still the default, but the version has been increased to u25 from u20 -- changes for u20-u25 can be found on Oracle's changelist blog. OpenJDK 7 can be enabled by configuring your pom.xml
. Currently, only maven builds are supported with this update.
This update has no impact on any running applications. If you choose not to use this buildpack, your applications will continue to use OpenJDK 6u20.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models; | |
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | |
import javax.xml.bind.annotation.XmlRootElement; | |
import java.io.Serializable; | |
/** | |
* TODO: Javadoc | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logs | |
project/project | |
project/target | |
target | |
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
less_tail() { | |
tmp_file=`mktemp -t lesstail` | |
$@ > $tmp_file & | |
less +F $tmp_file | |
kill % | |
rm $tmp_file | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Heroku Deploy [23663] | |
Path: /Users/USER/Downloads/Heroku Deploy 2.app/Contents/MacOS/Heroku Deploy | |
Identifier: com.yourcompany.HerokuDeploy | |
Version: 1.0 (1.0) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [392] | |
User ID: 265846391 | |
Date/Time: 2014-07-31 16:07:33.398 -0700 | |
OS Version: Mac OS X 10.8.5 (12F45) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'net/http' | |
require 'excon' | |
Excon.defaults[:chunk_size] = 1024*10 | |
streamer = lambda do | |
sleep((100..500).to_a.sample.to_f / 1000) | |
"#{%w(hello from streaming how do you do).to_a.sample * 30}\n" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'excon' | |
file = File.open(ARGV[1], 'rb') | |
streamer = lambda do | |
file.read(Excon.defaults[:chunk_size]).to_s | |
end | |
res = Excon.post( | |
"http://busl.herokuapp.com/streams/#{ARGV[0]}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h3 () { | |
domain=${HEROKU_API_URL:-"https://api.heroku.com"} | |
curl -n -k -H "Accept: application/vnd.heroku+json; version=3" ${domain}/$@ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/api/health/db' do | |
Data.db_ping | |
to_json(status: 'ok') | |
rescue | |
raise UnavailableException | |
end |