Skip to content

Commit

Permalink
Merge branch 'develop' into patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza authored Oct 28, 2020
2 parents 482bb2e + de14fc6 commit 6ba5198
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bench/config/common_site_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_gunicorn_workers():
'''This function will return the maximum workers that can be started depending upon
number of cpu's present on the machine'''
return {
"gunicorn_workers": multiprocessing.cpu_count()
"gunicorn_workers": multiprocessing.cpu_count() * 2 + 1
}

def update_config_for_frappe(config, bench_path):
Expand Down
5 changes: 3 additions & 2 deletions bench/playbooks/roles/bench/tasks/setup_erpnext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
- name: Check whether the site already exists
stat: path="{{ bench_path }}/sites/{{ site }}"
register: site_folder
when: not without_site

- name: Create a new site
command: "bench new-site {{ site }} --admin-password '{{ admin_password }}' --mariadb-root-password '{{ mysql_root_password }}'"
args:
chdir: "{{ bench_path }}"
when: not site_folder.stat.exists
when: not without_site and not site_folder.stat.exists

- name: Install ERPNext to default site
command: "bench --site {{ site }} install-app erpnext"
args:
chdir: "{{ bench_path }}"
when: not without_erpnext
when: not without_site and not without_erpnext
...
4 changes: 4 additions & 0 deletions bench/playbooks/roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
[mysqld]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
# setting appeared inside mysql but overwritten by mariadb inside mariadb.conf.d/xx-server.cnf valued as utf8mb4_general_ci
collation-server = utf8mb4_unicode_ci
create: yes
become: yes
become_user: root
Expand Down
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def get_passwords(args):
mysql_root_password = ''
continue

# admin password
if not admin_password:
# admin password, only needed if we're also creating a site
if not admin_password and not args.without_site:
admin_password = getpass.unix_getpass(prompt='Please enter the default Administrator user password: ')
conf_admin_passswd = getpass.unix_getpass(prompt='Re-enter Administrator password: ')

Expand Down

0 comments on commit 6ba5198

Please sign in to comment.