mirror of
https://github.com/frappe/bench.git
synced 2025-01-26 16:08:23 +00:00
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
---
|
|
- name: install bench
|
|
pip: name={{ bench_repo_path }} extra_args='-e'
|
|
become: yes
|
|
become_user: root
|
|
|
|
- name: Check whether bench exists
|
|
stat: path="{{ bench_path }}"
|
|
register: bench_stat
|
|
|
|
- name: init bench
|
|
command: bench init {{ bench_path }} --frappe-branch {{ branch }}
|
|
args:
|
|
creates: "{{ bench_path }}"
|
|
when: not bench_stat.stat.exists
|
|
|
|
# setup common_site_config
|
|
- name: setup config
|
|
command: bench setup config
|
|
args:
|
|
creates: "{{ bench_path }}/sites/common_site_config.json"
|
|
chdir: "{{ bench_path }}"
|
|
|
|
- name: install frappe app
|
|
command: bench get-app frappe https://github.com/frappe/frappe
|
|
args:
|
|
creates: "{{ bench_path }}/apps/frappe"
|
|
chdir: "{{ bench_path }}"
|
|
|
|
# setup procfile
|
|
- name: setup procfile
|
|
command: bench setup socketio
|
|
args:
|
|
creates: "{{ bench_path }}/node_modules"
|
|
chdir: "{{ bench_path }}"
|
|
|
|
# setup procfile
|
|
- name: setup procfile
|
|
command: bench setup procfile
|
|
args:
|
|
creates: "{{ bench_path }}/Procfile"
|
|
chdir: "{{ bench_path }}"
|
|
|
|
|
|
# setup config for redis/socketio
|
|
- name: setup redis
|
|
command: bench setup redis
|
|
args:
|
|
creates: "{{ bench_path }}/config/redis_socketio.conf"
|
|
chdir: "{{ bench_path }}"
|