Created
February 3, 2019 04:55
-
-
Save hisanari/eb4f6ac5061dbbb80b297a63444350d6 to your computer and use it in GitHub Desktop.
Rails new 手順
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir XXXX_app | |
cd XXXX_app | |
rbenv exec bundle init | |
vim Gemfile | |
bundle install --path vendor/bundle | |
bundle exec rails new . -B | |
vim Gemfile | |
mini_racerのコメントアウトを外す | |
sass-railsからsasscに変更する | |
bundle exec rails db:create | |
bundle exec puma -C config/puma.rb | |
bundle exec rails g scaffold user first_name:string last_name:string email:string | |
bundle exec rails db:migrate | |
bundle exec rails g scaffold article title:string body: text user:references | |
bundle exec rails db:migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment