2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00
bench/playbooks/develop/includes/setup_bench.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

2016-03-15 06:54:17 +00:00
---
- name: install bench
pip: name={{ bench_repo_path }} extra_args='-e'
become: yes
become_user: root
2016-03-15 06:54:17 +00:00
- name: init bench
command: bench init {{ bench_path }}
args:
creates: "{{ bench_path }}"
2016-03-15 12:41:08 +00:00
# setup common_site_config
- name: setup config
command: bench setup config
args:
creates: "{{ bench_path }}/sites/common_site_config.json"
chdir: "{{ bench_path }}"
2016-03-17 07:29:44 +00:00
2016-03-15 06:54:17 +00:00
- name: install frappe app
command: bench get-app frappe https://github.com/frappe/frappe
args:
creates: "{{ bench_path }}/apps/frappe"
chdir: "{{ bench_path }}"
2016-03-15 12:41:08 +00:00
2016-03-16 07:33:09 +00:00
# setup procfile
- name: setup procfile
command: bench setup socketio
args:
creates: "{{ bench_path }}/node_modules"
chdir: "{{ bench_path }}"
2016-03-15 12:41:08 +00:00
# setup procfile
- name: setup procfile
command: bench setup procfile
args:
creates: "{{ bench_path }}/Procfile"
chdir: "{{ bench_path }}"
2016-03-17 07:29:44 +00:00
2016-03-15 12:41:08 +00:00
# setup config for redis/socketio
- name: setup redis
command: bench setup redis
args:
creates: "{{ bench_path }}/config/redis_socketio.conf"
chdir: "{{ bench_path }}"
2016-03-17 07:29:44 +00:00