- rvm gemset create store
- echo ruby-2.7.1@store > .ruby-version
- gem install rails
- rails new store -d postgresql --no-skip-action-mailer
- rails generate scaffold Post name:string title:string content:text\n
- rails generate controller home index
Rails.application.routes.draw do
root to: 'home#index'
get 'home/index'
resources :posts
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end
659 docker build -t store:1.0 .
docker logs store_app_1
docker exec -it store_app_1 /bin/sh