Bladeren bron

[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)
Petrik de Heus 1 maand geleden
bovenliggende
commit
071bcd95de
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      frameworks/Ruby/rails/rails-mysql.dockerfile
  2. 1 1
      frameworks/Ruby/rails/rails.dockerfile

+ 1 - 1
frameworks/Ruby/rails/rails-mysql.dockerfile

@@ -25,4 +25,4 @@ ENV RAILS_ENV=production_mysql
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0
 CMD service redis-server start && \
-    rails server
+    bin/rails server

+ 1 - 1
frameworks/Ruby/rails/rails.dockerfile

@@ -25,4 +25,4 @@ ENV RAILS_ENV=production_postgresql
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0
 CMD service redis-server start && \
-    rails server
+    bin/rails server