LoginSignup
0
1

More than 5 years have passed since last update.

[学習用]Rails5 アプリ名を変えるて高速立ち上げキットを作る準備

Posted at

一度ある程度作ったアプリを名前を変えて再利用する。
高速立ち上げキットを作っておく。いわるゆテンプレみたいなもの。
devise,user,twitterAuth,Articles,posts,lps,uploaders,mailers
など装備した状態で始める。

備忘録

Rails5.1以降は
config/initializers/session_store.rb は元々無いそうで、
必要ない様です。

簡単5手順

1:ファイルのコピー

単純にコピーして新しいファイル名にする

2:アプリ名を変更する

config/application.rb
module ここの名前を変える
  class Application < Rails::Application

3:データベース名を変える

config/database.yml
ここの名前を変える_development
ここの名前を変える_test
ここの名前を変える_production
ここの名前を変える

4:データベース作成

$ bundle
$ rails db:create
$ rails db:migrate

5:起動してみる

$ rails s

これで完了。

0
1
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
0
1