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

Remove env-section from apns.app.src #32

Merged
merged 1 commit into from Oct 20, 2014
Merged

Remove env-section from apns.app.src #32

merged 1 commit into from Oct 20, 2014

Conversation

bipthelin
Copy link
Contributor

The env-section effectively overrides any value set using
application:set_env/3 before apns is loaded making it harder to test,
etc. The data in env doesn't really add anyhing since the user most
definitely want to update that with it's own info

@elbrujohalcon
Copy link
Member

It was intended to act as a config sample and poor-man's documentation. If you really need to remove it, please add an app.config.sample file somewhere. Thanks

@elbrujohalcon
Copy link
Member

BTW, just in case, you can load an app without starting it, like…

application:load(apns),
application:set_env(apns, cert_file, "your/cert.pem"),
apns:start().

@bipthelin
Copy link
Contributor Author

I've added a default app.config to the PR.

The env-section effectively overrides any value set using
application:set_env/3 before apns is loaded making it harder to test,
etc. The data in env doesn't really add anyhing since the user most
definitely want to update that with it's own info

A default app.config is added to priv/app.config
elbrujohalcon pushed a commit that referenced this pull request Oct 20, 2014
Remove env-section from apns.app.src
@elbrujohalcon elbrujohalcon merged commit f40d334 into inaka:master Oct 20, 2014
@elbrujohalcon
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants