LoginSignup
2
2

More than 5 years have passed since last update.

開発中のRailsプロジェクトを新しい環境で再開するときのメモ

Last updated at Posted at 2018-06-12

お仕事ではなく趣味レベルで個人でやっている中での手順・注意点

  • リポジトリのクローン
  • Rubyのバージョン合わせ
    • rbenv local
  • Gemのインストール
    • bundle install --path vendor/bundle (--without production)
  • development環境のDB準備
    • rails db:create
    • rails db:migrate
  • バージョン管理から除外されているが、必要になるファイルの、作成ないしコピー
    • Encrypted Credentialsをdevelopmentでも有効にしているのに、master.keyのことを忘れており、railsコマンドが動かなくなりパニクった
  • .git/configを編集してremoteのURLを書き換え、sshを有効にする
    • デフォルトがhttpになっていて、pushしようとするとログインを促され、面倒
    • Clone with SSHしてれば不要
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2