2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-22 12:09:02 +00:00

Add default ERPNext installation to Easy Install script (develop) (#473)

* Added ERPNext to Easy Install

* fix site_name issue

* fix site_name issue

* uncomment

* fix -ask password

* Added ERPNext install to centos, debian, macosx

* Set site1.local as default sitename

* Update README.md

* Restrict ERPNext installation for production

* Added checks for existing sites and apps

* Included setup_erpnext.yml in setup_dev_env.yml

* Fixed erpnext ImportError issue with bench new-site command.
This commit is contained in:
Rishabh Nambiar 2017-09-01 11:06:21 +00:00 committed by Saurabh
parent 753c739d8b
commit 7a7c61105c
7 changed files with 38 additions and 2 deletions

View File

@ -85,6 +85,7 @@ Note: Please do not remove the bench directory the above commands will create
- You may also have to install build-essential and python-setuptools by running `apt-get install build-essential python-setuptools`
- This script will install the pre-requisites, install bench and setup an ERPNext site
- Passwords for Frappe Administrator and MariaDB (root) will be asked
- MariaDB (root) password may be `password` on a fresh server
- You can then login as **Administrator** with the Administrator password
- If you find any problems, post them on the forum: [https://discuss.erpnext.com](https://discuss.erpnext.com)
@ -126,7 +127,7 @@ For production:
- Install all the pre-requisites
- Install the command line `bench`
- Create a new bench (a folder that will contain your entire frappe/erpnext setup)
- Create a new site on the bench
- Create a new ERPNext site on the bench
#### How do I start ERPNext

View File

@ -13,7 +13,7 @@
become: yes
become_user: root
- name: install prequisites
- name: install prerequisites
yum: pkg={{ item }} state=present
with_items:
# basic installs
@ -84,3 +84,4 @@
# setup development environment
- include: includes/setup_dev_env.yml
when: not run_travis and not production

View File

@ -124,3 +124,4 @@
# setup development environment
- include: includes/setup_dev_env.yml
when: not production and not run_travis

View File

@ -14,3 +14,7 @@
args:
creates: "{{ bench_path }}/config/redis_socketio.conf"
chdir: "{{ bench_path }}"
# Setup an ERPNext site called site1.local
- include: includes/setup_erpnext.yml

View File

@ -0,0 +1,27 @@
---
- name: Check if ERPNext App exists
stat: path="{{ bench_path }}/apps/erpnext"
register: app
- name: get erpnext
command: bench get-app erpnext https://github.com/frappe/erpnext --branch {{ branch }}
args:
creates: "{{ bench_path }}/apps/erpnext"
chdir: "{{ bench_path }}"
when: not app.stat.exists
- name: Check whether a site called site1.local exists
stat: path="{{ bench_path }}/sites/site1.local"
register: site_folder
- name: create a new default site
command: bench new-site site1.local --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}
args:
chdir: "{{ bench_path }}"
when: not site_folder.stat.exists
- name: install erpnext to default site
command: bench --site site1.local install-app erpnext
args:
chdir: "{{ bench_path }}"

View File

@ -32,3 +32,4 @@
# setup development environment
- include: includes/setup_dev_env.yml
when: not production

View File

@ -107,3 +107,4 @@
# setup development environment
- include: includes/setup_dev_env.yml
when: not production and not run_travis and not without_bench_setup