-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cap -T throw error #14
Comments
Could you show your file layout?
|
. Capfile Gemfile Gemfile.lock config tasks ./config: ./config/deploy: ./config/deploy/example.com: ./config/deploy/example.com/frontoffice: ./tasks: |
This is because of stupid default validation for I suggest two solutions Solution1. Remove stupid validationconfig/deploy.rb env.variables.send(:validators).delete(:application)
set :application, -> { fetch(:stage).split(':').reverse[1] } Solution2. Use "static" application variable nameRemove dynamic application variable from config/deploy/frontoffice.rb set :application, 'frontoffice' config/deploy/example_com.rb set :application, 'example_com' This is not DRY. |
Thanks @ayanko - solution 1 solved it for me. |
Hi, after installing caphub and initializing the project, i've created the production.rb file in deploy/namespace/frontoffice/production.rb.
But the cap -T throw me an error:
The text was updated successfully, but these errors were encountered: