https://github.com/redislabs/rediscloud-ruby-sinatra-sample
Redis Cloud on Sinatra Sample
https://github.com/redislabs/rediscloud-ruby-sinatra-sample
Last synced: about 1 year ago
JSON representation
Redis Cloud on Sinatra Sample
- Host: GitHub
- URL: https://github.com/redislabs/rediscloud-ruby-sinatra-sample
- Owner: RedisLabs
- License: gpl-3.0
- Created: 2014-08-11T12:55:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-19T16:06:40.000Z (almost 11 years ago)
- Last Synced: 2025-06-16T13:04:58.067Z (about 1 year ago)
- Language: HTML
- Homepage:
- Size: 164 KB
- Stars: 4
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Redis Cloud Ruby Sinatra Sample
A Ruby Sinatra sample app that demonstrates [Redis Cloud](http://redis.io) deployment to Heroku.
[SET](http://redis.io/commands/SET) and [GET](http://redis.io/commands/SET) a key, get your db [INFO](http://redis.io/commands/INFO) and [FLUSH](http://redis.io/commands/FLUSHDB) the db.
The app is currently running at: [rediscloud-ruby-sinatra-sample.herokuapp.com](http://rediscloud-ruby-sinatra-sample.herokuapp.com), and uses [Redis Cloud](https://addons.heroku.com/rediscloud) as a backend.
## Deploy to Heroku
Instantly deploy it to Heroku:
[](https://heroku.com/deploy?template=https://github.com/RedisLabs/rediscloud-ruby-sinatra-sample)
## Docker
The app can be run and tested using the [Heroku Docker CLI plugin](https://devcenter.heroku.com/articles/introduction-local-development-with-docker).
Make sure the plugin is installed:
heroku plugins:install heroku-docker
Configure Docker and Docker Compose:
heroku docker:init
And run the app locally:
docker-compose up web
The app will now be available on the Docker daemon IP on port 8080.
You can also use Docker to release to Heroku:
heroku create
heroku docker:release
heroku open