rvm use 3.0.0@backend --create
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: backend_development
test:
<<: *default
database: backend_test
production:
<<: *default
database: backend_production
username: backend
password: <%= ENV['BACKEND_DATABASE_PASSWORD'] %>
ENV['DEVISE_JWT_SECRET_KEY'] = "4bff4ae8f2b386386e7b19e860e09e36580d8aea8dbd6b860dc261e9526d1f8610653c6f5f2c12d731beebd0ef47b48b3e968bdc1efc4111c2521766641dc299"
RestaurantApp/backendcalled.rvmrcand paste the following into it:cd .for the correct ruby version to take effect (press Y when prompted).bundle installto install all the dependencies (if something failse dobundle updateinstead)configfolder calleddatabase.ymland paste into it the following code:config/initializersfolder create a new filea_env.rband paste the following line into it:rails db:migrate(if it fails userails db:setupinstead).rails sor the rails console usingrails c.