This commit is contained in:
chenjing 2019-07-08 15:18:17 +08:00
parent 7deadfebdd
commit 0756b9ec35
4 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,7 @@ gem 'rails', '~> 5.2.3'
# Use sqlite3 as the database for Active Record
gem 'puma', '~> 3.11'
gem 'redis', '~> 4.0'
gem 'sqlite3'
gem 'redis-rails', '~> 5'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'

View File

@ -188,6 +188,7 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.1)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.9)
@ -229,6 +230,7 @@ DEPENDENCIES
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)

View File

@ -5,6 +5,13 @@ class InvoteController < ApplicationController
end
def create
redis = Redis.new
redis.set()
end
private
def params
end
end

View File

@ -8,6 +8,10 @@ services:
dockerfile: ./docker/app/DockerFile
depends_on:
- redis
db:
image: sqlite3
volumes:
- sqlite_data:/var/lib/sqlite/data
redis:
image: redis:alpine
web: