I can start the server / console, run the rake task in the environment localusing the following commands:
local
rails s -e local rails c local rake RAILS_ENV=local db:migrate
How to run rails generate (or rails g)in the environment local?
rails generate (or rails g)
RAILS_ENV=local rails g ...
Must work. This is an env var installation with a shell instead of relying on rails reading the command line parameter.
Source: https://habr.com/ru/post/1785290/More articles:Formatting NSDate - objective-cLine List, preend node - javaSubversion issue via PHP exec - phpraise python level with threads - pythonПроблема циклического включения С++ - c++Disconnecting iPhone to Java EE - javaGet the proximity of a SQLite column on Android - androidOn Android, is AbstractWindowedCursor.isBlob () guaranteed to be correct? - androidGet byte [] from the data set and compress - c #jQuery AJAX not redirecting? - javascriptAll Articles