$ rails s
$ ./bin/webpack-dev-server
rbenv version
rbenv local 0.0.0
rbenv global 0.0.0
rbenv rehash
$ rbenv exec rails db:create
$ rbenv exec rails db:migrate
$ rbenv exec rails db:drop
$ rbenv exec rails db:seed
rbenv exec rails s
update Rubygems
$ gem update --system
update bundler
$ gem install bundler
update Gemfile.lock in your project
$ bundler update --bundler
$ bundle update
$ bundle update carrierwave
$ bundle install # after adding gem to gemfile
$ rails routes
$ brew install awscli
$ aws configure
$ aws s3 sync s3://bucket-name destination/folder
- Get database color (nickname)
$ heroku pg:info -a app-name
$ heroku pg:pull DATABASE_COLOR pssgrs_development -a app-name
-
Get database color (nickname)
$ heroku pg:info -a app-name
$ heroku pg:info -a app-name-staging
-
Copy first database to the other
$ heroku pg:copy appname-production::WHITE_ORIGIN_URL GOLD_DEST_DATABASE_URL -a appname-staging
$ heroku pg:copy app-name::DATABASE_URL DATABASE_URL -a app-name-staging --confirm app-name-staging
Copy items to another bucket
aws s3 sync s3://bucket-source s3://bucket-destination
Here to resent confirmation instructions
$ heroku run rails c -a pssgrsv2-pr-1)
> c = User.last
> c.send_confirmation_instructions
Edit secrets : bin/rails credentials:edit
Edit secrets on heroku : $ heroku config:set SECRET_KEY_BASE=
- devise-jwt
- Help 1
- Help 2
- Help 3
- 302 redirect
$ rails s
./bin/webpack-dev-server
yarn run webpack:analyze