2016-03-15 12:24:17 +05:30
|
|
|
---
|
|
|
|
- name: install bench
|
|
|
|
pip: name={{ bench_repo_path }} extra_args='-e'
|
2016-03-17 15:20:21 +05:30
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-15 12:24:17 +05:30
|
|
|
|
|
|
|
- name: init bench
|
|
|
|
command: bench init {{ bench_path }}
|
|
|
|
args:
|
|
|
|
creates: "{{ bench_path }}"
|
2016-03-15 18:11:08 +05:30
|
|
|
|
|
|
|
# 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 12:59:44 +05:30
|
|
|
|
2016-03-15 12:24:17 +05:30
|
|
|
- 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 18:11:08 +05:30
|
|
|
|
2016-03-16 13:03:09 +05:30
|
|
|
# setup procfile
|
|
|
|
- name: setup procfile
|
|
|
|
command: bench setup socketio
|
|
|
|
args:
|
|
|
|
creates: "{{ bench_path }}/node_modules"
|
|
|
|
chdir: "{{ bench_path }}"
|
|
|
|
|
2016-03-15 18:11:08 +05:30
|
|
|
# setup procfile
|
|
|
|
- name: setup procfile
|
|
|
|
command: bench setup procfile
|
|
|
|
args:
|
|
|
|
creates: "{{ bench_path }}/Procfile"
|
|
|
|
chdir: "{{ bench_path }}"
|
|
|
|
|
2016-03-17 12:59:44 +05:30
|
|
|
|
2016-03-15 18:11:08 +05:30
|
|
|
# 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 12:59:44 +05:30
|
|
|
|