2
0
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:
shreyas 2016-05-23 16:26:13 +05:30
parent 0e754c53ab
commit 83adbd824d
6 changed files with 35 additions and 24 deletions

View File

@ -47,7 +47,7 @@
- tk-devel - tk-devel
# To ensure that ansible_lsb is set # To ensure that ansible_lsb is set
- redhat-lsb-core - redhat-lsb-core
become: yes become: yes
become_user: root become_user: root
@ -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

View File

@ -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 }}"

View 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 }}"

View File

@ -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

View File

@ -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

View File

@ -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: