aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/config_files.rake
Commit message (Collapse)AuthorAgeLines
* Allow RAILS_ENV to be set in sysvinit-thinhotfix/0.19.1hotfix/0.19.0.2Gareth Rees2014-08-29-1/+2
| | | | Install script on AWS uses development mode by default
* Fix typo in config_files:convert_init_scriptGareth Rees2014-08-07-1/+1
|
* Tidy config_files:convert_init_scriptGareth Rees2014-08-07-10/+11
|
* Use correct site name for alert tracks log and pidGareth Rees2014-07-15-3/+5
| | | | | ENV[‘SITE’] can be specified for the crontab (and elsewhere) so allow the option here too.
* Generate alert-tracks pid & log to default locationGareth Rees2014-07-15-2/+3
| | | | | Deployment system should handle linking the original location to wherever necessary on the specific platform.
* Minor tidying of alert-tracks generationGareth Rees2014-07-15-6/+10
|
* Add MAILTO option to convert_crontab taskGareth Rees2014-06-25-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Less manual editing for reinstallers. Existing backwards-compatibility: $ bundle exec rake config_files:convert_crontab \ DEPLOY_USER=deploy \ VHOST_DIR=/home/vagrant/ \ VCSPATH=alaveteli \ SITE=alaveteli \ CRONTAB=config/crontab-example | grep 'MAILTO=' MAILTO=cron-alaveteli@mysociety.org New optional MAILTO option: $ bundle exec rake config_files:convert_crontab \ DEPLOY_USER=deploy \ VHOST_DIR=/home/vagrant/ \ VCSPATH=alaveteli \ SITE=alaveteli CRONTAB=config/crontab-example \ MAILTO=cron@example.org | grep 'MAILTO=' MAILTO=cron@example.org
* Add a rake task to rewrite the crontab-example fileMark Longair2013-11-07-0/+18
| | | | | | As suggested by Louise Crow, this new rake task reuses the convert_ugly function to rewrite the crontab-example file into a usable crontab file.
* Fix an undefined variable errorMark Longair2013-11-07-6/+2
| | | | | I assume 'skip' must have been an argument to this function before it was introduced into our repository.
* Move the usage notice functions to a module so they can be used elsewhere.Louise Crow2012-09-25-22/+2
|
* Add task config_files:convert_init_script - it does the ugly variable ↵Louise Crow2012-09-20-0/+76
replacement and uncomments the RAILS_ENV setting and exporting (substituting in the current RAILS_ENV) if there's no config/rails_env.rb