質問編集履歴

2

Gemfileの追加

2019/03/09 01:26

投稿

buware
buware

スコア10

test CHANGED
File without changes
test CHANGED
@@ -223,3 +223,113 @@
223
223
 
224
224
 
225
225
  ```
226
+
227
+
228
+
229
+ ### Gemfile
230
+
231
+
232
+
233
+ ```
234
+
235
+ source 'https://rubygems.org'
236
+
237
+
238
+
239
+ git_source(:github) do |repo_name|
240
+
241
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
242
+
243
+ "https://github.com/#{repo_name}.git"
244
+
245
+ end
246
+
247
+
248
+
249
+
250
+
251
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
252
+
253
+ gem 'rails', '~> 5.1.4'
254
+
255
+ # Use postgresql as the database for Active Record
256
+
257
+ gem 'pg', '~> 0.18'
258
+
259
+ # Use Puma as the app server
260
+
261
+ gem 'puma', '~> 3.7'
262
+
263
+ # Use SCSS for stylesheets
264
+
265
+ gem 'sass-rails', '~> 5.0'
266
+
267
+ # Use Uglifier as compressor for JavaScript assets
268
+
269
+ gem 'uglifier', '>= 1.3.0'
270
+
271
+ # See https://github.com/rails/execjs#readme for more supported runtimes
272
+
273
+ # gem 'therubyracer', platforms: :ruby
274
+
275
+
276
+
277
+ # Use CoffeeScript for .coffee assets and views
278
+
279
+ gem 'coffee-rails', '~> 4.2'
280
+
281
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
282
+
283
+ gem 'jbuilder', '~> 2.5'
284
+
285
+ # Use ActiveModel has_secure_password
286
+
287
+ # gem 'bcrypt', '~> 3.1.7'
288
+
289
+
290
+
291
+ # Use Capistrano for deployment
292
+
293
+ # gem 'capistrano-rails', group: :development
294
+
295
+
296
+
297
+ gem 'devise'
298
+
299
+
300
+
301
+ group :development, :test do
302
+
303
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
304
+
305
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
306
+
307
+ end
308
+
309
+
310
+
311
+ group :development do
312
+
313
+ # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
314
+
315
+ gem 'web-console', '>= 3.3.0'
316
+
317
+ gem 'listen', '>= 3.0.5', '< 3.2'
318
+
319
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
320
+
321
+ gem 'spring'
322
+
323
+ gem 'spring-watcher-listen', '~> 2.0.0'
324
+
325
+ end
326
+
327
+
328
+
329
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
330
+
331
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
332
+
333
+
334
+
335
+ ```

1

dockerfileの追加

2019/03/09 01:26

投稿

buware
buware

スコア10

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- ### docker-compose run web rake db:migrateで発生のラー
17
+ ### docker-compose run web rake db:migrateで発生のラー
18
18
 
19
19
 
20
20
 
@@ -78,7 +78,31 @@
78
78
 
79
79
  よろしくお願いいたします。
80
80
 
81
-
81
+ ### Dockerfile
82
+
83
+
84
+
85
+ ```
86
+
87
+ FROM ruby:2.5.3
88
+
89
+ RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
90
+
91
+ RUN mkdir /app
92
+
93
+ WORKDIR /app
94
+
95
+ COPY Gemfile /app/Gemfile
96
+
97
+ COPY Gemfile.lock /app/Gemfile.lock
98
+
99
+ RUN bundle install
100
+
101
+ COPY . /app
102
+
103
+
104
+
105
+ ```
82
106
 
83
107
  ### database.yml
84
108