Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rvm use 2.5.1
- rails new my_first_app
- rails new -d postgresql nomdetasuperappli
- rails generate devise:install
- rails generate controller static_pages home
- rails g mailer UserMailer
- rails g rspec:install
- rails db:drop
- rails db:create
- rails g controller Post index
- rails db:migrate
- a
- rails db:seed
- rails c
- rails s
- http://localhost:3000/
- rails generate model Article ArticleID:integer userID:integer articleContent:string
- rails generate factory_bot:model TonModel
- u = User.create
- https://rubyplus.com/articles/3451-Has-Many-Through-and-Has-and-Belongs-to-Many-in-Rails-5
- https://gossip-projecto.herokuapp.com/ | https://git.heroku.com/gossip-projecto.git
- memo HEROKU
- $ rails new myapp
- $ cd myapp
- $ heroku create un-nom-trop-cool
- #Je change le Gemfile pour la BDD si je suis en SQLite3
- $ bundle install
- $ rake assets:precompile
- $ git add .
- $ git commit -m "First commit and pushing to Heroku"
- $ git push heroku master
- $ heroku run rails db:migrate #optionnel si tu as une migration à migrer
- heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement