Skip to content

Instantly share code, notes, and snippets.

@julweber
Last active August 29, 2015 14:06
Show Gist options
  • Save julweber/4f3bd3cc0c53d57e83a4 to your computer and use it in GitHub Desktop.
Save julweber/4f3bd3cc0c53d57e83a4 to your computer and use it in GitHub Desktop.
Anynines environment variables
This is an example for an application called anynines_example:
TMPDIR=/home/vcap/tmp
VCAP_APP_PORT=62501
USER=vcap
VCAP_APPLICATION={"limits":{"mem":256,"disk":1024,"fds":16384},"application_version":"91a25d49-8aa1-4d05-8d08-95997afd0f78","application_name":"anynines_example","application_uris":["anynines_example.de.a9sapp.eu"],"version":"91a25d49-8aa1-4d05-8d08-95997afd0f78","name":"anynines_example","space_name":"test","space_id":"d56d5410-5092-4dd6-a52e-3c460c68d4cb","uris":["anynines_example.de.a9sapp.eu"],"users":null,"instance_id":"1984c1c85b2249d291c59d5001876b0c","instance_index":0,"host":"0.0.0.0","port":62501,"started_at":"2014-09-25 09:26:02 +0000","started_at_timestamp":1411637162,"start":"2014-09-25 09:26:02 +0000","state_timestamp":1411637162}
RACK_ENV=production
PATH=/home/vcap/app/bin:/home/vcap/app/vendor/bundle/bin:/home/vcap/app/vendor/bundle/ruby/2.0.0/bin:/bin:/usr/bin
PWD=/home/vcap
LANG=en_US.UTF-8
VCAP_SERVICES={"postgresql-9.1":[{"name":"anynines_example_db","label":"postgresql-9.1","tags":[],"plan":"Pluto-free","credentials":{"name":"anynines_example_db","host":"10.12.0.9","hostname":"10.12.0.9","port":5433,"user":"userX","username":"userX","password":"passwordX","uri":"postgres://userX:[email protected]:5433/anynines_example_db"}}]}
SHLVL=1
HOME=/home/vcap/app
RAILS_ENV=production
GEM_PATH=/home/vcap/app/vendor/bundle/ruby/2.0.0:
PORT=62501
VCAP_APP_HOST=0.0.0.0
DATABASE_URL=postgres://userX:[email protected]:5433/anynines_example_db
MEMORY_LIMIT=256m
_=/usr/bin/env
---
applications:
- name: ruby-sinatra-example-app-2
memory: 256M
instances: 1
buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
host: ruby-sinatra-example-app-2
domain: de.a9sapp.eu
path: .
command: ruby app.rb
env:
SERVICE_START_DATE: 2014-01-01
DEFAULT_ROLE: guest
CURRENCY: euro
services:
- postgresql_sinatra_example
- rabbitmq_sinatra_example
---
applications:
- name: ruby-sinatra-example-app-2
memory: 256M
instances: 1
buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
host: ruby-sinatra-example-app-2
domain: de.a9sapp.eu
path: ./ruby_sinatra_example_app
command: ruby app.rb
env:
SERVICE_START_DATE: 2014-01-01
DEFAULT_ROLE: guest
CURRENCY: euro
services:
- postgresql_sinatra_example
- rabbitmq_sinatra_example
- name: example_worker
memory: 128M
instances: 2
buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
host: example_worker
domain: de.a9sapp.eu
path: ./sinatra_worker
command: ruby worker.rb
env:
SERVICE_START_DATE: 2014-01-01
DEFAULT_ROLE: guest
CURRENCY: euro
FREQUENCY: 30
services:
- rabbitmq_sinatra_example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment