You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jeff Billimek 7265b939f4 clarifying cf manifest and adding to gitignore (#123) 7 years ago
..
README.md support for deployments to cloudfoundry (#116) 7 years ago
config.yaml support for deployments to cloudfoundry (#116) 7 years ago
manifest-example.yml clarifying cf manifest and adding to gitignore (#123) 7 years ago
run.sh use redis as a session store backend (#119) 7 years ago

README.md

golang-url-shortener on cloudfoundry

configuration

  1. Either compile or download the linux amd64 binary and copy it into this directory (e.g. cp ../../releases/golang-url-shortener_linux_amd64/golang-url-shortener . if you compiled it yourself via make)
  2. cp manifest-example.yml manifest.yml and edit to meet your needs
  3. (optional) create any services that may be required for securing env variables or things like redis, for example:
    • creating a cups service to hold oauth keys: cf create-user-provided-service gourl-oauth -p '{"githubClientID":"<some id>","githubClientSecret":"<some key>"}'
    • creating a redis service for later binding: cf create-service thd-redis default gourl-redis-service
  4. (optional) modify run.sh to set REDIS_SERVICE_NAME to match the name of the redis service for your cloudfoundry implementation

deployment

cf push or cf push <custom app name>