diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-04-23 21:20:02 -0400 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-04-23 21:20:02 -0400 |
commit | 94b347926e2ac0bb39cd25049494430f5d9fd310 (patch) | |
tree | 85d1c5987e9faa6a3a362c7e7ab56bef6e551155 /generate.sh | |
parent | 292bfecd7dd2071f3a0403c75f28e4d50a53a558 (diff) | |
parent | 933199499f9adfa0347783c538a10b88ffb1b98b (diff) |
Merge branch 'clean2' of https://github.com/LukeShu/Leaguer into clean2
Diffstat (limited to 'generate.sh')
-rwxr-xr-x | generate.sh | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/generate.sh b/generate.sh index 8980139..b6d4330 100755 --- a/generate.sh +++ b/generate.sh @@ -3,6 +3,23 @@ # The generate.sh bash file is used to generate all of the necessary # .rb files to run the website +# To modify it and update the app do the following: +# 1. Take care of uncommitted files +# 2. Run `git checkout clean2` +# 3. Run `git pull` +# 4. Make any changes to `generate.sh`, and commit them. +# If you have committed the desired changes to 'master', you can do +# this simply with: +# git checkout master generate.sh +# git commit -m 'Get changes to generate.sh from master +# 5. Run `./generate.sh` +# 6. Run `git commit -m 'run ./generate.sh'` +# 7. Run `git checkout master` +# 8. Run `git merge clean2` +# 9. Resolve any merge conflicts. +# 10. Run `git push origin clean2` +# 11. Run `git push origin master` + set -xe # figure out where we are running from @@ -12,6 +29,7 @@ cd "$srcdir" export RAILS_ENV=development git rm -rf -- app test config/routes.rb db/migrate || true +git rm -f -- config/initializers/mailboxer.rb || true git checkout clean-start -- app test config/routes.rb bundle install @@ -54,7 +72,6 @@ bundle exec rails generate migration CreateMatchTeamJoinTable matches teams # Just controllers bundle exec rails generate controller search bundle exec rails generate controller main -bundle exec rails generate controller static # Migrations # By having these separate from the original 'generate', it makes it |