Skip to content

jyllsarta/priconner

Repository files navigation

README

プリコネ攻略するやつ

  • 指定のスプレッドシートに書いたマスタデータを元にDBを構築
  • マスタデータからページを生成しているので柔軟な機能拡張・データ追加が可能

データは外出し

Run

preference

bundle install
rails db:create
rails db:ridgepole:apply

seed

git clone https://github.com/jyllsarta/priconeer-masterdata.git masterdata
rails db:seed

put binary

rm -r public/images
cd images
git clone https://github.com/jyllsarta/priconeer-binary.git images

start server

  • local
rails s
  • if production
export SECRET_KEY_BASE=なんとかかんとか
sudo SECRET_KEY_BASE=$SECRET_KEY_BASE PORT=80 RAILS_ENV=production bin/rails s

Schema update

  • rails db:ridgepole:apply

  • bundle exec annotate

エンドポイントを生やしたら

  • bundle exec annotate -r

デプロイ手順

セッションに入り、サーバ停止

sudo su - jyll
tmux a -t "production-home"
^C

マスタ更新・seed

cd ~/priconner/masterdata
git pull
cd ~/priconner
rails db:ridgepole:apply
RAILS_ENV=production bin/rails db:seed

アセットの更新

bundle exec rake assets:precompile

run server

source ~/.bash_profile
sudo SECRET_KEY_BASE=$SECRET_KEY_BASE PORT=80 RAILS_ENV=production bin/rails s

About

プリコネ攻略するやつ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published