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

Allow using ini file to pass options to the installer #110

Closed
yakky opened this issue May 19, 2014 · 4 comments
Closed

Allow using ini file to pass options to the installer #110

yakky opened this issue May 19, 2014 · 4 comments
Milestone

Comments

@yakky
Copy link
Member

yakky commented May 19, 2014

Using a ini file will make easier to create repeatable installations

@yakky yakky modified the milestone: 0.7 Oct 11, 2014
@yakky yakky modified the milestones: 0.7, 0.8 Dec 8, 2014
frost-nzcr4 added a commit to frost-nzcr4/djangocms-installer that referenced this issue Aug 11, 2015
frost-nzcr4 added a commit to frost-nzcr4/djangocms-installer that referenced this issue Aug 11, 2015
@frost-nzcr4
Copy link
Contributor

I've completed the ini config working task and this branch develop...frost-nzcr4:ini-parse may be interesting for you as well. Also at work I need to get dump of config right after all parsing is completed — dump described here frost-nzcr4/djangocms-installer@ini-parse...frost-nzcr4:ini-dump it helps me partially workaround issue #94: when install failed I re-run it with dumped config.

@yakky
Copy link
Member Author

yakky commented Aug 12, 2015

@frost-nzcr4 this is great! I want those, they look awesome and basically ready for merge (probably just adding ini format documentation)

@frost-nzcr4
Copy link
Contributor

config-file

Sample ini config with all available arguments https://github.com/frost-nzcr4/djangocms-installer/blob/ini-parse/config.ini.sample.
Run:

djangocms_installer --config-file /path/to/config.ini project_name

General config can be cutomised with any available arguments:

djangocms_installer --config-file /path/general-config.ini -p /path/other/proj -s -q project_name

If config.ini not contains no-input = true and -q argument isn't set then one act as a placeholder with default values for wizard.

config-dump

Dumps all arguments to custom config.ini:

djangocms_installer --config-dump /path/config.ini -p . project_name

if installation fails dump can be used to fix some arguments and re-run installer with dumped config:

djangocms_installer --config-dump /path/config.ini --db postgres://wrong-usr:pwd@host/db -p . project_name
# failed
djangocms_installer --config-file /path/config.ini --db postgres://correct-user:pwd@host/db -p . project_name
# succeed

@yakky
Copy link
Member Author

yakky commented Aug 29, 2015

Fixed by #197
A great thanks @frost-nzcr4 for contributing this exciting feature

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

No branches or pull requests

2 participants