2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +00:00

Added option to set default site name

This commit is contained in:
Ameya Shenoy 2018-04-09 11:53:51 +05:30
parent 9b24458a96
commit 4061c811d8
No known key found for this signature in database
GPG Key ID: 735490161CD5C91E
2 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@
creates: "{{ bench_path }}/config/redis_socketio.conf"
chdir: "{{ bench_path }}"
# Setup an ERPNext site called site1.local
# Setup an ERPNext site
- include_tasks: setup_erpnext.yml
when: not run_travis

View File

@ -10,18 +10,18 @@
chdir: "{{ bench_path }}"
when: not app.stat.exists
- name: Check whether a site called site1.local exists
stat: path="{{ bench_path }}/sites/site1.local"
- name: Check whether the site already exists
stat: path="{{ bench_path }}/sites/{{ site }}"
register: site_folder
- name: Create a new site
command: bench new-site site1.local --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}
command: "bench new-site {{ site }} --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}"
args:
chdir: "{{ bench_path }}"
when: not site_folder.stat.exists
- name: Install ERPNext to default site
command: bench --site site1.local install-app erpnext
command: "bench --site {{ site }} install-app erpnext"
args:
chdir: "{{ bench_path }}"
...