Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Bench manager production setup

vishalseshagiri edited this page Oct 3, 2017 · 1 revision

frappe_docker (Setup production steps)

  1. Ensure that you have sudo installed
  2. If not drop your shell to root and install sudo via the command apt-get install sudo
  3. create this file /etc/sudoers.d/frappe
  4. Add these lines to the file /etc/sudoers.d/frappe

User rules for frappe

frappe ALL=(ALL) NOPASSWD:ALL
  1. Ensure that nginx and supervisor are setup
  2. Install jq package to parse and edit json files (It is a dependency for disable_production_scripts.sh) sudo apt-get install jq
  3. Ensure that you have nginx and supervisor installed and setup on your system.
  4. nginx install steps(for ubuntu)

sudo apt-get install nginx sudo vim /etc/apt/sources.list.d/nginx.list

add this line to the file

deb http://nginx.org/packages/ubuntu/ xenial nginx

sudo apt-get update sudo apt-get install nginx

say yes to install without verification
Replace $key with the corresponding $key from your GPG error.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key sudo apt-get update sudo apt-get install nginx

  1. supervisor install steps(for ubuntu) sudo apt-get install supervisor
  2. Make sure you have the productions_scripts.sh and disable_production_scripts.sh files in the frappe-bench directory.