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
jbayer-mbpro:helloflask jbayer$ cf push --buildpack git://github.com/heroku/heroku-buildpack-python.git | |
Using manifest file manifest.yml | |
Creating hello-flask... OK | |
1: a1-app.cf-app.com | |
2: none | |
Domain> a1-app.cf-app.com | |
Creating route hello-flask.a1-app.cf-app.com... OK |
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
jbayer-mbpro:ruby-build jbayer$ gem install tools-cf-plugin | |
ERROR: While executing gem ... (Gem::DependencyError) | |
Unable to resolve dependencies: tools-cf-plugin requires bosh_cli (< 1.6, >= 1.5.0.pre.3) |
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
/var/folders/mt/0903tr2j54q4261kl9x_j5cr0000gp/T/ruby-build.20130621063708.41284 ~/workspace/vcap-test-assets/java_web/java_tiny_app/target | |
x ruby-2.0.0-p195/ | |
x ruby-2.0.0-p195/eval_jump.c | |
x ruby-2.0.0-p195/transcode_data.h | |
x ruby-2.0.0-p195/complex.c | |
x ruby-2.0.0-p195/main.c | |
x ruby-2.0.0-p195/vm_insnhelper.h | |
x ruby-2.0.0-p195/goruby.c | |
x ruby-2.0.0-p195/enum.c | |
x ruby-2.0.0-p195/vm_trace.c |
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
#!/usr/bin/env ruby | |
while true | |
system "bundle exec rake cron" | |
sleep ARGV[0] || 600 | |
end |
This file has been truncated, but you can view the full 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
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x0 pc=0x571676] | |
goroutine 7 [running]: | |
github.com/cloudfoundry/yagnats.(*Client).Ping(0x0, 0x4bf7e8) | |
/var/vcap/packages/gorouter/src/github.com/cloudfoundry/yagnats/client.go:41 +0x36 | |
github.com/cloudfoundry/go_cfmessagebus.(*NatsAdapter).Ping(0xc2000e1480, 0x5) | |
/var/vcap/packages/gorouter/src/github.com/cloudfoundry/go_cfmessagebus/nats.go:144 +0x28 | |
github.com/cloudfoundry/gorouter.(*Registry).isStateStale(0xc2000e1500, 0x27) | |
/var/vcap/packages/gorouter/src/github.com/cloudfoundry/gorouter/registry.go:212 +0x2e |
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
jamesbayer:hello-flask jamesbayer$ cat hello.py | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World!' | |
if __name__ == '__main__': | |
app.run() |
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
$ cf -v | |
cf 5.3.0 | |
$ cf create-service user-provided -t | |
>>> OMMITTED | |
Name?> somedb | |
What credential parameters should applications use to connect to this service instance? | |
(e.g. hostname, port, password)> uri | |
uri> mysql://dbuser:dbpasswd@mysql.vcap.me:3306/dbname |
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
$ brew install go --cross-compile-common | |
==> Downloading https://go.googlecode.com/files/go1.1.2.src.tar.gz | |
######################################################################## 100.0% | |
==> ./make.bash --no-clean | |
==> ./make.bash --no-clean | |
==> ./make.bash --no-clean | |
/private/tmp/go-BvwY/go/src/cmd/5l/../ld/lib.c:661:9: error: no case matching constant switch condition '53' [-Werror] | |
switch(thechar){ | |
^~~~~~~ | |
1 error generated. |
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
$ cf app sticky-session | |
Showing health and status for app sticky-session... | |
OK | |
health: running | |
usage: 256M x 4 instances | |
urls: sticky-session-6115e.cfapps.io, sticky-session.cfapps.io | |
status since cpu memory disk | |
#0 running 2013-10-05 11:08:31 AM 0.0% 84.3M of 256M 93.6M of 1G |
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
$ ls | |
jamesbayer:foo jamesbayer$ vi .buildpacks | |
$ cat .buildpacks | |
https://github.com/jbayer/null-buildpack.git | |
https://github.com/cloudfoundry/heroku-buildpack-ruby.git | |
jamesbayer:foo jamesbayer$ cf push --buildpack https://github.com/ddollar/heroku-buildpack-multi.git | |
Name> git-test | |
Instances> 1 |