質問編集履歴
2
Gemfileの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -110,4 +110,59 @@
|
|
110
110
|
volumes:
|
111
111
|
db-volume:
|
112
112
|
|
113
|
+
```
|
114
|
+
|
115
|
+
### Gemfile
|
116
|
+
|
117
|
+
```
|
118
|
+
source 'https://rubygems.org'
|
119
|
+
|
120
|
+
git_source(:github) do |repo_name|
|
121
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
122
|
+
"https://github.com/#{repo_name}.git"
|
123
|
+
end
|
124
|
+
|
125
|
+
|
126
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
127
|
+
gem 'rails', '~> 5.1.4'
|
128
|
+
# Use postgresql as the database for Active Record
|
129
|
+
gem 'pg', '~> 0.18'
|
130
|
+
# Use Puma as the app server
|
131
|
+
gem 'puma', '~> 3.7'
|
132
|
+
# Use SCSS for stylesheets
|
133
|
+
gem 'sass-rails', '~> 5.0'
|
134
|
+
# Use Uglifier as compressor for JavaScript assets
|
135
|
+
gem 'uglifier', '>= 1.3.0'
|
136
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
137
|
+
# gem 'therubyracer', platforms: :ruby
|
138
|
+
|
139
|
+
# Use CoffeeScript for .coffee assets and views
|
140
|
+
gem 'coffee-rails', '~> 4.2'
|
141
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
142
|
+
gem 'jbuilder', '~> 2.5'
|
143
|
+
# Use ActiveModel has_secure_password
|
144
|
+
# gem 'bcrypt', '~> 3.1.7'
|
145
|
+
|
146
|
+
# Use Capistrano for deployment
|
147
|
+
# gem 'capistrano-rails', group: :development
|
148
|
+
|
149
|
+
gem 'devise'
|
150
|
+
|
151
|
+
group :development, :test do
|
152
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
153
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
154
|
+
end
|
155
|
+
|
156
|
+
group :development do
|
157
|
+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
158
|
+
gem 'web-console', '>= 3.3.0'
|
159
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
160
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
161
|
+
gem 'spring'
|
162
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
163
|
+
end
|
164
|
+
|
165
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
166
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
167
|
+
|
113
168
|
```
|
1
dockerfileの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
### docker-compose run web rake db:migrateで発生のラー
|
9
|
+
### docker-compose run web rake db:migrateで発生のエラー
|
10
10
|
|
11
11
|
```
|
12
12
|
rake aborted!
|
@@ -38,7 +38,19 @@
|
|
38
38
|
足りない情報があれば、言っていただければ追記いたします。
|
39
39
|
|
40
40
|
よろしくお願いいたします。
|
41
|
+
### Dockerfile
|
41
42
|
|
43
|
+
```
|
44
|
+
FROM ruby:2.5.3
|
45
|
+
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
|
46
|
+
RUN mkdir /app
|
47
|
+
WORKDIR /app
|
48
|
+
COPY Gemfile /app/Gemfile
|
49
|
+
COPY Gemfile.lock /app/Gemfile.lock
|
50
|
+
RUN bundle install
|
51
|
+
COPY . /app
|
52
|
+
|
53
|
+
```
|
42
54
|
### database.yml
|
43
55
|
|
44
56
|
```
|