{"id":19839391,"url":"https://github.com/redislabs/rediscloud-openshift-quickstart","last_synced_at":"2025-05-01T19:30:19.576Z","repository":{"id":141980736,"uuid":"11451775","full_name":"RedisLabs/rediscloud-openshift-quickstart","owner":"RedisLabs","description":"A Ruby and Redis-Cloud hosted redis bootstrap for RedHat's OpenShift cloud.","archived":false,"fork":false,"pushed_at":"2014-02-06T10:34:34.000Z","size":235,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-06T17:03:05.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-16T14:37:00.000Z","updated_at":"2019-08-13T15:23:48.000Z","dependencies_parsed_at":"2023-03-12T12:25:45.842Z","dependency_job_id":null,"html_url":"https://github.com/RedisLabs/rediscloud-openshift-quickstart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frediscloud-openshift-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frediscloud-openshift-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frediscloud-openshift-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Frediscloud-openshift-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisLabs","download_url":"https://codeload.github.com/RedisLabs/rediscloud-openshift-quickstart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932514,"owners_count":21667157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:22:10.980Z","updated_at":"2025-05-01T19:30:19.299Z","avatar_url":"https://github.com/RedisLabs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redis Cloud on OpenShift in 5 Minutes\n-------------------------------------\n\nThis git repository helps you easily integrate the Redis Cloud service into your OpenShift apps.\n\n###Create your application###\n\n1. Create an account at http://openshift.redhat.com/ and set up you local machine with the client tools.\n2. Sign up for a free account at http://redis-cloud.com\n3. Create a redis instance, noting the connection details\n4. Clone and Deploy on OpenShift, supplying your redis host, port, and password as application configuration details.  \n\n```\n    rhc app create rediscloud ruby-1.9 \\\n      --from-code http://github.com/GarantiaData/rediscloud-openshift-quickstart.git \\\n      --env REDISCLOUD_URL=YOUR_REDISCLOUD_HOSTNAME \\\n      --env REDISCLOUD_PORT=YOUR_REDISCLOUD_DB_PORT \\\n      --env REDISCLOUD_PASSWORD=YOUR_REDISCLOUD_DB_PASS\n```\n\nThe above example uses \"rediscloud\" as the application name. It also includes an application source url, and several application configuration details.\nIf the `--from-code` option is not recognized, update your `rhc` gem.\n\nIf you failed to include your own Redis Cloud keys when creating your application, *don't worry* - There are notes on how to reconfigure your application in the next section.\n\nWhen the command completes you should have your own clone of the application source code in a folder named after your app (`rediscloud`), and a live copy of your application running at `http://rediscloud-$yournamespace.rhcloud.com`.\n\n### Using Environment Variables\nUse `rhc` to set the following environment variables for your OpenShift app (substituting in your own values for the provided key names):\n\n    rhc env set REDISCLOUD_URL=YOUR_REDIS_CLOUD_HOSTNAME -a rediscloud\n    rhc env set REDISCLOUD_PORT=YOUR_REDIS_CLOUD_PORT -a rediscloud\n    rhc env set REDISCLOUD_PASSWORD=YOUR_REDIS_CLOUD_PASSWORD -a rediscloud\n\nThen, run the following to restart your application (reloading it's Redis DB configuration):\n\n    rhc app restart rediscloud\n\nYou can review your application's full list configuration keys by typing:\n\n    rhc env list rediscloud\n\n### Local Development\nYou can run the same code in a local development environment by populating the required environment variables in your local development stage:\n\n    export REDISCLOUD_URL=YOUR_REDIS_CLOUD_HOSTNAME\n    export REDISCLOUD_PORT=YOUR_REDIS_CLOUD_PORT\n    export REDISCLOUD_PASSWORD=YOUR_REDIS_CLOUD_PASSWORD\n\nThen start your local server with:\n\n    ruby app.rb\n\nYou may need to run `bundle install` before starting your local server to in order to make sure that your application has access to all of it's dependencies.\nNext, you can edit your local source to start experimenting with your new Redis-powered application.  \n\nWhen you're ready to deploy an update to OpenShift, `git add`, `git commit`, and `git push` can allow you to update your remote OpenShift example application using [a standard code development workflow](https://www.openshift.com/developers/deploying-and-building-applications).\n\nMore Information\n----------------------------\n\nFor Redis-Clouds's developer resources visit http://redis-cloud.com/redis/developers\n\nFor general information about using redis see http://redis.io\n\nFor info on using redis with other programming languages visit: http://redis.io/clients\n\nFor more information on Redis-Cloud visit http://redis-cloud.com\n\n[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/5fd16896b6090ca419d72e81802e58c0 \"githalytics.com\")](http://githalytics.com/RedisLabs/rediscloud-openshift-quickstart)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Frediscloud-openshift-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredislabs%2Frediscloud-openshift-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Frediscloud-openshift-quickstart/lists"}