aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
Commit message (Collapse)AuthorAgeLines
* Deal with ../logs existing, and log not being a symlinkMark Longair2013-10-29-2/+7
| | | | | | | | | | | | | | | The rails-post-deploy script would error if the log directory existed (rather than being a symlink to another directory, for example) and the ../logs directory also existed. This commit changes this behaviour to move the existing log directory out of the way in this case. In addition, this commit switches from removing the old symlink and creating a new one (which creates a gap in time during which the log directory doesn't exist) to using "ln -snf" to just overwrite any existing symlink or file. (Note that this is still not an atomic operation, but it's bound to leave less time between removal and creation.)
* Normalize whitespace in rails-post-deployMark Longair2013-10-29-27/+27
| | | | | | | | | The rails-post-deploy script unfortunately uses a mixtures of spaces and 0x09 to represent indentation, so it's not even clear what local convention to follow. It appears from the mixture that the intention is that the tabs should represent 4 spaces, so this commit replaces them, strips trailing whitespace and changes some non-standard indentation at the end of a bash heredoc.
* Merge branch 'feature/hide-individual-responses' into rails-3-developLouise Crow2013-09-17-6/+0
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile app/views/admin_request/edit_outgoing.html.erb config/packages doc/CHANGES.md doc/INSTALL.md spec/models/info_request_spec.rb spec/models/public_body_spec.rb
| * Don't make zip dir publicly accessible.Louise Crow2013-09-16-6/+0
| | | | | | | | We want to be able to authorise access to it.
* | Run migrations before trying to install themeIan Chard2013-08-14-3/+1
| | | | | | | | | | | | Conflicts: script/rails-post-deploy
* | Add a rake task to print a warning if the state of a submodule is not what ↵Louise Crow2013-07-30-0/+2
|/ | | | we expect it to be.
* Now that we removed the readlink command to allow rails-post-deploy to be ↵hotfix/0.11.0.10Louise Crow2013-06-12-1/+1
| | | | easily run on e.g. OSX, use a relative path for the softlink.
* Now that runner is invoked via the rails command and not directly from the ↵Louise Crow2013-05-29-7/+7
| | | | script directory, it's more important to cd to the app directory in order to pick up the bundler gemfile. Fixes #964.
* Enable rails-post-deploy to be run from any directoryMark Longair2013-04-02-2/+7
| | | | | | | The BASH_SOURCE variable reliably gives the path of the script, so we can make the script work regardless of what the current working directory is on running the script.
* Change email address in header of source code to hello@mysociety.orgMatthew Landauer2013-03-26-1/+1
|
* Even in development, bundle should be installed in the vendor directory. ↵Louise Crow2013-01-15-1/+4
| | | | Fixes #730. Capistrano-based deploys don't use rails-post-deploy, so I don't think this will be a problem for them.
* Don't install the develop or development group of gems in travis.Louise Crow2012-12-17-0/+4
|
* Remove svn tags that are out of date as we are now using gitMatthew Landauer2012-10-09-3/+0
|
* Move the installation of themes to a Rake task so that we can use the ↵Louise Crow2012-08-29-27/+1
| | | | ALAVETELI_VERSION constant to check for tags in themes that indicate compatibility with this version of the Alaveteli codebase.
* Make the post-deploy script actually work, and for both incantations of ↵Seb Bacon2012-07-17-6/+12
| | | | theme installation
* Run optional "post_install" scriptSeb Bacon2012-07-16-0/+6
|
* Revert "Revert "Let’s try fixing bundler instead""Robin Houston2012-05-31-22/+1
| | | | | | | | | This reverts commit 57bfe1f4fd19f766677e08b132d0a16fad2ad706. In fact this time we are not going to try fixing bundler instead, but rather we are going to try to work around the bundler bug in a different way, by uploading our version of xapian-full to rubygems (under a different name: xapian-full-alaveteli).
* Revert "Let’s try fixing bundler instead"Robin Houston2012-05-31-1/+22
| | | | This reverts commit 9f5ad85b6ff541a8e4dc83e91548af9c745d64af.
* Let’s try fixing bundler insteadRobin Houston2012-05-31-22/+1
| | | | Instead of trying to work around the bug in bundler, what if we fixed it?
* local can only be used in a functionRobin Houston2012-05-31-1/+1
|
* Bundler fix for rails-post-deployRobin Houston2012-05-31-8/+30
| | | | | | | | | | | | | Ordinarily we would expect simply to run "bundle install" here. However, at the time of writing there is a bug in bundler that causes gems from github to be rebuilt every time bundle install is run, which makes the process very extremely slow in our case because Xapian takes a long time to build. Running "bundle exec bundle install" is a workaround for this bug. However clearly one cannot run bundle exec till the bundle has initially been installed, so we use a flag file .bundler-has-run to indicate whether we are doing an initial install.
* Correctly iterate over THEME_URLS arraySeb Bacon2012-05-23-2/+3
|
* Introduce ability to install multiple, layered themes.Seb Bacon2012-05-23-0/+10
|
* Use "bundle exec bundle install" (ugh) as a workaround for the fact that in ↵Seb Bacon2012-05-16-2/+2
| | | | deployment mode, the xapian-full gem gets recompiled every time
* Now we use bundler, update all scripts to exec `rake` as `bundle exec rake`Seb Bacon2012-05-04-1/+1
|
* in production mode, ensure we skip development and test gemsSeb Bacon2012-03-13-1/+1
|
* Do 'bundler' stuff in correct orderSeb Bacon2012-03-12-4/+6
|
* cause the post-deploy process to run "bundler install"Seb Bacon2012-02-22-1/+6
|
* Attempt to ensure tests always run using the "test" environment, by:Seb Bacon2012-02-07-14/+13
| | | | | 1) Not overriding any *existing* RAILS_ENV setting in rails_env.rb 2) Always creating a rails_env.rb file
* Create config/rails_env.rb in productionRobin Houston2012-02-06-17/+37
| | | | | | | | | | Partially revert 2eac4bef8d73f47bbe579b6f787ef54b8d782d7a, creating config/rails_env.rb in production only. This should address some of the difficulties with config/rails_env.rb causing unexpected behaviour in development, whilst forcing Rails into production environment where necessary for scripts run from cron etc. Closes #418?
* Get rid of config/rails_env.rbRobin Houston2012-02-02-27/+0
| | | | | | | The rails-post-deploy script was creating a file config/rails_env.rb to force $RAILS_ENV to have the appropriate value. But this is a huge pain during development, and shouldn’t be necessary anyway, so let’s get rid of it.
* don't cause an error if script has been run before (due to trying to create ↵Seb Bacon2011-09-26-2/+5
| | | | existing symlink for downloads)
* Add notes about how to make zipfiles downloadable (and provide for this in ↵Seb Bacon2011-09-15-0/+4
| | | | the rails-post-deply script)
* config/general.yml is just as good as config/generalRobin Houston2011-07-08-1/+1
|
* added option to install a theme from a remote URL as part of ↵Seb Bacon2011-06-14-0/+5
| | | | rails-post-deploy process
* Remove unneeded part of script now symlinks in gitFrancis Irving2009-12-03-4/+0
|
* Probably add Rails itselfFrancis Irving2009-12-03-13/+0
|
* Remove old versions of RailsFrancis Irving2009-12-03-13/+4
|
* Give warning when rails_env.rb is made, as it is very confusing.Francis Irving2009-12-02-0/+15
|
* Changing rspec / rspec_on_rails versionFrancis Irving2009-12-02-4/+4
|
* Oops, put back directory change.Francis Irving2009-10-29-0/+1
|
* Remove making of symlink that isn't usedFrancis Irving2009-10-29-3/+0
|
* shlib in new placeFrancis Irving2009-10-29-1/+1
|
* Now is the application directory, not mysociety CVS dirFrancis Irving2009-10-28-16/+3
|
* With new deploy system, is already in the rails app.Francis Irving2009-10-28-3/+0
|
* Fork of rails-post-deploy in mysociety/bin in CVS.Francis Irving2009-10-28-0/+110
We need it in the same repository, and probably better that it is specific to WDTK anyway.