mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
[Fix] Added seperate ansible script for setting up development environment
This commit is contained in:
parent
0e754c53ab
commit
83adbd824d
@ -62,3 +62,7 @@
|
|||||||
|
|
||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
|
|
||||||
|
# setup development environment
|
||||||
|
- include: includes/setup_dev_env.yml
|
||||||
|
when: not setup_production
|
||||||
|
@ -26,25 +26,3 @@
|
|||||||
args:
|
args:
|
||||||
creates: "{{ bench_path }}/apps/frappe"
|
creates: "{{ bench_path }}/apps/frappe"
|
||||||
chdir: "{{ bench_path }}"
|
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 }}"
|
|
||||||
|
22
playbooks/develop/includes/setup_dev_env.yml
Normal file
22
playbooks/develop/includes/setup_dev_env.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
# Setup Socketio
|
||||||
|
- 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 Redis env for RQ
|
||||||
|
- name: setup redis
|
||||||
|
command: bench setup redis
|
||||||
|
args:
|
||||||
|
creates: "{{ bench_path }}/config/redis_socketio.conf"
|
||||||
|
chdir: "{{ bench_path }}"
|
@ -29,3 +29,6 @@
|
|||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
|
|
||||||
|
# setup development environment
|
||||||
|
- include: includes/setup_dev_env.yml
|
||||||
|
when: not setup_production
|
||||||
|
@ -70,3 +70,7 @@
|
|||||||
|
|
||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
|
|
||||||
|
# setup development environment
|
||||||
|
- include: includes/setup_dev_env.yml
|
||||||
|
when: not setup_production
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
vars:
|
vars:
|
||||||
bench_path: "/home/{{ ansible_user_id }}/benches/frappe-bench"
|
bench_path: "/home/{{ ansible_user_id }}/frappe/frappe-bench"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user