mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
[Fix] Added new folder named production and moved production ansible script
This commit is contained in:
parent
6b3ef05d97
commit
d8183de9b3
@ -66,7 +66,7 @@ def install_bench(args):
|
|||||||
if args.develop:
|
if args.develop:
|
||||||
run_playbook('develop/install.yml', sudo=True, extra_args=vars(args))
|
run_playbook('develop/install.yml', sudo=True, extra_args=vars(args))
|
||||||
elif args.setup_production:
|
elif args.setup_production:
|
||||||
run_playbook('develop/setup_production.yml', sudo=True, extra_args=vars(args))
|
run_playbook('production/install.yml', sudo=True, extra_args=vars(args))
|
||||||
|
|
||||||
def install_python27():
|
def install_python27():
|
||||||
version = (sys.version_info[0], sys.version_info[1])
|
version = (sys.version_info[0], sys.version_info[1])
|
||||||
@ -197,7 +197,7 @@ def run_playbook(playbook_name, sudo=False, extra_args=None):
|
|||||||
if sudo:
|
if sudo:
|
||||||
args.extend(['--become', '--become-user=frappe'])
|
args.extend(['--become', '--become-user=frappe'])
|
||||||
|
|
||||||
if extra_args.get('run_verbose'):
|
if extra_args.get('verbosity'):
|
||||||
args.append('-vvvv')
|
args.append('-vvvv')
|
||||||
|
|
||||||
success = subprocess.check_call(args, cwd=os.path.join(bench_repo, 'playbooks'))
|
success = subprocess.check_call(args, cwd=os.path.join(bench_repo, 'playbooks'))
|
||||||
@ -221,9 +221,8 @@ def parse_commandline_args():
|
|||||||
parser.add_argument('--site', dest='site', action='store', default='site1.local',
|
parser.add_argument('--site', dest='site', action='store', default='site1.local',
|
||||||
help='Specifiy name for your first ERPNext site')
|
help='Specifiy name for your first ERPNext site')
|
||||||
|
|
||||||
# Hidden arguments to the argsparse
|
parser.add_argument('--verbose', dest='verbosity', action='store_true', default=False,
|
||||||
parser.add_argument('--run-verbose', dest='run_verbose', action='store_true', default=False,
|
help='Run the script in verbose mode')
|
||||||
help=argparse.SUPPRESS)
|
|
||||||
|
|
||||||
# To enable testing of script using Travis, this should skip the prompt
|
# To enable testing of script using Travis, this should skip the prompt
|
||||||
parser.add_argument('--run-travis', dest='run_travis', action='store_true', default=False,
|
parser.add_argument('--run-travis', dest='run_travis', action='store_true', default=False,
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
|
||||||
# Install the common pre-requisites for the setting up bench
|
# Install the common pre-requisites for the setting up bench
|
||||||
- include: install.yml
|
- include: ../develop/install.yml
|
||||||
|
|
||||||
# Install the production environment
|
# Install the production environment
|
||||||
- include: includes/setup_prod_env.yml
|
- include: ../develop/includes/setup_prod_env.yml
|
||||||
|
|
||||||
# Setup Bench for production environment
|
# Setup Bench for production environment
|
||||||
- include: includes/setup_bench_production.yml
|
- include: ../develop/includes/setup_bench_production.yml
|
||||||
|
|
||||||
# Setup SELinux Policy, Optional can be done later
|
# Setup SELinux Policy, Optional can be done later
|
||||||
# - include: includes/setup_selinux_policy.yml
|
# - include: includes/setup_selinux_policy.yml
|
Loading…
Reference in New Issue
Block a user