Giter Site home page Giter Site logo

one-f-m / bench Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frappe/bench

1.0 1.0 0.0 30.02 MB

Multi-tenant platform to install and manage Frappe apps (yes, ERPNext too :P)

License: GNU General Public License v3.0

Python 93.79% Shell 1.96% HTML 2.69% Ruby 1.56%

bench's Introduction

bench

bench is a command-line utility that helps you to install apps, manage multiple sites and update Frappe / ERPNext apps on */nix (macOS, Ubuntu, Debian, CentOS, etc) for development and production.

Note: If you are looking for easier ways to get started and evaluate ERPNext, download the Virtual Machine or take a free trial on erpnext.com.


Table of Contents


bench CLI

Bench is a command line tool that helps you install, setup, manage multiple sites and apps based on Frappe Framework.


Usage

  • Create a new bench

      bench init [bench-name]
    
  • Add a site under current bench

      bench new-site [site-name]
    

    Optional: If the database for the site does not reside on localhost or listens on a custom port, you can use the flags --db-host to set a custom host and/or --db-port to set a custom port.

      bench new-site [site-name] --db-host [custom-db-host-ip] --db-port [custom-db-port]
    
  • Add apps to bench

      bench get-app [app-name] [app-link]
    
  • Install apps on a particular site

      bench --site [site-name] install-app [app-name]
    
  • Start bench (only for development)

      bench start
    
  • Show bench help

      bench --help
    

Note: Apart from bench init, all other bench commands have to be run having the respective bench directory as the working directory. (bench update may also be run, but it's behaviour is covered in depth in the docs)

For more in depth information on commands and usage follow here. As for a consolidated list of bench commands, go through this page.


Installation

To do this install, you must have basic information on how Linux works and should be able to use the command-line. bench will also create nginx and supervisor config files, setup backups and much more. If you are using on a VPS make sure it has >= 1Gb of RAM or has swap setup properly.

git clone https://github.com/frappe/bench ~/.bench
pip3 install --user -e ~/.bench

As bench is a python application, its installation really depends on python + pip + git. The Frappe Framework, however has various other system dependencies like nodejs, yarn, redis and a database system like mariadb or postgres. Go through the installation requirements for an updated list.

If you have questions, please ask them on the forum under the "Install / Update" category.


Custom Bench Commands

Want to utilize a bench command you've added in your custom Frappe application? This guide might be of some help.


Easy Install Script

  • This is an opinionated setup so it is best to setup on a blank server.

  • Works on Ubuntu 16.04+, CentOS 7+, Debian 8+

  • You may have to install Python 3 and other essentials by running apt-get install python3-minimal build-essential python3-setuptools

  • This script will install the pre-requisites, install bench and setup an ERPNext site (site1.local under frappe-bench)

  • Passwords for Frappe Administrator and MariaDB (root) will be asked and saved under ~/passwoords.txt

  • MariaDB (root) password may be password on a fresh server

  • You can then login as Administrator with the Administrator password

  • The log file is saved under /tmp/logs/install_bench.log in case you run into any issues during the install.

  • If you find any problems, post them on the forum: https://discuss.erpnext.com with the installation_problem under "Install / Update" category.

      wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
      python3 install.py --production
    

Follow Easy Install Docs for more information.


Release Bench

Releases can be made for Frappe apps using bench. More information about this process can be found here.


Bench Manager (GUI for Bench)

Bench Manager is a graphical user interface to emulate the functionalities of Frappe Bench. Like the command line utility it helps you install apps, manage multiple sites, update apps and much more. Install just by executing the following command in the respective bench directory.

	bench setup manager

Docker


Guides


Resources


License

bench is licensed under GNU GPLv3

bench's People

Contributors

pdvyas avatar gavindsouza avatar anandpdoshi avatar codingcoffee avatar saurabh6790 avatar rmehta avatar vjfalk avatar achillesrasquinha avatar thunderbottom avatar revant avatar netchampfaris avatar sagarvora avatar adityahase avatar nabinhait avatar shridarpatil avatar sahil28297 avatar dulhaver avatar surajshetty3416 avatar mbauskar avatar jwrober avatar itsraichura avatar loader-bsd avatar slushpuppy avatar yashodhank avatar vishalseshagiri avatar sbkolate avatar robertschouten avatar kressi avatar gshmu avatar ckosiegbu avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.