Skip to content

Commit 071bcd9

Browse files
authored
[rails] Use bin/rails to start server (#10046)
Calling `rails` directly is deprecated and results in errors on newer versions: 3.5.0+0/rubygems.rb:269:in 'Gem.find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException)
1 parent f1f8853 commit 071bcd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/Ruby/rails/rails-mysql.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ ENV RAILS_ENV=production_mysql
2525
ENV PORT=8080
2626
ENV REDIS_URL=redis://localhost:6379/0
2727
CMD service redis-server start && \
28-
rails server
28+
bin/rails server

frameworks/Ruby/rails/rails.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ ENV RAILS_ENV=production_postgresql
2525
ENV PORT=8080
2626
ENV REDIS_URL=redis://localhost:6379/0
2727
CMD service redis-server start && \
28-
rails server
28+
bin/rails server

0 commit comments

Comments
 (0)