mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 08:16:28 +00:00
7a7c61105c
* Added ERPNext to Easy Install * fix site_name issue * fix site_name issue * uncomment * fix -ask password * Added ERPNext install to centos, debian, macosx * Set site1.local as default sitename * Update README.md * Restrict ERPNext installation for production * Added checks for existing sites and apps * Included setup_erpnext.yml in setup_dev_env.yml * Fixed erpnext ImportError issue with bench new-site command.
28 lines
866 B
YAML
28 lines
866 B
YAML
---
|
|
- name: Check if ERPNext App exists
|
|
stat: path="{{ bench_path }}/apps/erpnext"
|
|
register: app
|
|
|
|
- name: get erpnext
|
|
command: bench get-app erpnext https://github.com/frappe/erpnext --branch {{ branch }}
|
|
args:
|
|
creates: "{{ bench_path }}/apps/erpnext"
|
|
chdir: "{{ bench_path }}"
|
|
when: not app.stat.exists
|
|
|
|
- name: Check whether a site called site1.local exists
|
|
stat: path="{{ bench_path }}/sites/site1.local"
|
|
register: site_folder
|
|
|
|
- name: create a new default site
|
|
command: bench new-site site1.local --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
|
|
args:
|
|
chdir: "{{ bench_path }}"
|
|
|