Skip to content

Instantly share code, notes, and snippets.

@mathie
Created September 4, 2009 16:15
Show Gist options
  • Save mathie/180969 to your computer and use it in GitHub Desktop.
Save mathie/180969 to your computer and use it in GitHub Desktop.
# FIXME: For some deeply boring reason, in order to deploy to the staging
# server, you currently have to change the application name to foobarapp_staging,
# rather than foobarapp. I'm working on fixing it, but it turns out to be more
# complex than it ought to have been.
set :application, "foobarapp_staging"
after 'staging' do
raise "Please change the top of config/deploy.rb so that it reads 'set :application, \"foobarapp_staging\"' and try again." unless application == 'foobarapp_staging'
end
after 'production' do
raise "Please change the top of config/deploy.rb so that it reads 'set :application, \"foobarapp\"' and try again." unless application == 'foobarapp'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment