Production mode Error

Production mode Error

sudo python install.py --production --user ubuntu --db-host localhost

or

sudo python install.py --production --user ubuntu

or

sudo python install.py --production --user ubuntu --db-host localhost --verbose

or

sudo python install.py --production

Getting Error

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/ubuntu/frappe-bench”, “–frappe-branch”, “master”, “–db-host”, “localhost”], “delta”: “0:00:00.317967”, “end”: “2017-06-07 15:52:40.446770”, “failed”: true, “invocation”: {“module_args”: {"_raw_params": “bench init /home/ubuntu/frappe-bench --frappe-branch master --db-host localhost”, “_uses_shell”: false, “chdir”: null, “creates”: “/home/ubuntu/frappe-bench”, “executable”: null, “removes”: null, “warn”: true}, “module_name”: “command”}, “rc”: 2, “start”: “2017-06-07 15:52:40.128803”, “stderr”: “Error: no such option: --db-host”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}

The --db-host option doesnt exist

@skhendake,

–db-host option is not available in easy install script

sudo python install.py --production --user ubuntu --verbose

fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/ubuntu/frappe-bench”, “–frappe-branch”, “master”, “–db-host”], “delta”: “0:00:00.325185”, “end”: “2017-06-07 16:41:33.890938”, “failed”: true, “invocation”: {“module_args”: {"_raw_params": "bench init /home/ubuntu/frappe-bench --frappe-branch master --db-host ", “_uses_shell”: false, “chdir”: null, “creates”: “/home/ubuntu/frappe-bench”, “executable”: null, “removes”: null, “warn”: true}, “module_name”: “command”}, “rc”: 2, “start”: “2017-06-07 16:41:33.565753”, “stderr”: “Error: no such option: --db-host”, “stdout”: “”, “stdout_lines”: [], “warnings”: []}

Still facing issue