プリコネ攻略するやつ
- 指定のスプレッドシートに書いたマスタデータを元にDBを構築
- マスタデータからページを生成しているので柔軟な機能拡張・データ追加が可能
-
マスタ
-
静的ファイル
bundle install
rails db:create
rails db:ridgepole:applygit clone https://github.com/jyllsarta/priconeer-masterdata.git masterdata
rails db:seedrm -r public/images
cd images
git clone https://github.com/jyllsarta/priconeer-binary.git images- local
rails s- if production
export SECRET_KEY_BASE=なんとかかんとか
sudo SECRET_KEY_BASE=$SECRET_KEY_BASE PORT=80 RAILS_ENV=production bin/rails s-
rails db:ridgepole:apply -
bundle exec annotate
bundle exec annotate -r
sudo su - jyll
tmux a -t "production-home"
^Ccd ~/priconner/masterdata
git pull
cd ~/priconner
rails db:ridgepole:apply
RAILS_ENV=production bin/rails db:seedbundle exec rake assets:precompilesource ~/.bash_profile
sudo SECRET_KEY_BASE=$SECRET_KEY_BASE PORT=80 RAILS_ENV=production bin/rails s