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.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| README.md | 7 years ago | |
| config.yaml | 7 years ago | |
| manifest-example.yml | 7 years ago | |
| run.sh | 7 years ago | |
README.md
golang-url-shortener on cloudfoundry
configuration
- 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) cp manifest-example.yml manifest.ymland edit to meet your needs- (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
- creating a cups service to hold oauth keys:
- (optional) modify run.sh to set
REDIS_SERVICE_NAMEto match the name of the redis service for your cloudfoundry implementation
deployment
cf push or cf push <custom app name>