Skip to content
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

port_bindings referred nowhere and making fail all deployments #74

Closed
zedtux opened this issue Nov 29, 2014 · 2 comments
Closed

port_bindings referred nowhere and making fail all deployments #74

zedtux opened this issue Nov 29, 2014 · 2 comments

Comments

@zedtux
Copy link
Contributor

zedtux commented Nov 29, 2014

Given I'm execution the following command:

$ centurion -p myproject -e staging -a rolling_deploy

I'm facing the following error:

lib/centurion/deploy_dsl.rb:49:in `public_port_for': undefined method `values' for nil:NilClass (NoMethodError)

The first step called by the deploy tasks is the stop_containers which pass a second parameter with the output of fetch(:port_bindings).
This :port_bindings is not defined in my configuration but seems required (my config is the default one.

Can you please confirm there's something wrong or explain me what I'm missing ?

@zedtux
Copy link
Contributor Author

zedtux commented Nov 29, 2014

Uncommenting the following solved the issue:

 host_port 10234, container_port: 9292

I was expecting to use default values if there are. In case this parameter is required it should be defined in the documentation.

@zedtux
Copy link
Contributor Author

zedtux commented Nov 29, 2014

Sorry I've just found that this is a duplicate of #18. Sorry

@zedtux zedtux closed this as completed Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant