-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove DReSA-specific production config
- Loading branch information
Showing
10 changed files
with
33 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# echo "Usage: update.sh <development | production>" | ||
# exit 0 | ||
if [ -z $1 ] | ||
then | ||
ENV=$1 | ||
else | ||
ENV="development" | ||
fi | ||
|
||
export RAILS_ENV=$ENV | ||
|
||
# rebuild rails environment | ||
git pull | ||
bundle install --deployment | ||
bundle exec rake db:migrate | ||
bundle exec rake sunspot:solr:reindex | ||
bundle exec rake assets:cleans | ||
bundle exec rake assets:precompile | ||
bundle exec rake tmp:clear | ||
# update scheduled tasks | ||
whenever --update-crontab --set environment="$ENV" | ||
|
||
# restart services | ||
touch tmp/restart.txt | ||
pkill -f sidekiq | ||
bundle exec sidekiq -d -e "$ENV" -L /tmp/sidekiq.log | ||
|
This file was deleted.
Oops, something went wrong.