同步操作将从 liuyibin23/frappe_docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This is a repo designed to aide setting up frappe/ERPNext on docker.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Unfortunately, this container is not curently suited for a production environment (but we're working towards that goal!).
Note: These instructions assume you have both Docker and Docker Compose installed on your system.
Clone this repo and change your working directory to it:
git clone https://github.com/frappe/frappe_docker.git
cd frappe_docker/
Build and start the container, and initialize the bench:
./dbench setup docker
./dbench init
Note: This will take a while, as docker will now build the container.
Add a new site and start Frappe:
./dbench new-site site1.local
./dbench setup hosts
./dbench start
Use Frappe:
Open your browser to localhost:8000/login
. Then login using the username Administrator
and the password admin
.
./dbench
IMPORTANT: Always make sure that your current directory is the root directory of the repo (i.e. frappe_docker/
)
./dbench
: Launches you into an interactive shell in the container as the user frappe
.
./dbench setup docker [ stop | down ]
: Starts and builds the docker containers using docker-compose up -d
.
stop
: Stops the containers with docker-compose stop
.down
: Deletes the containers and the coresponding volumes with docker-compose down
../dbench setup hosts
: Adds all sites to the containers hosts file.
Note: Run this after you've added a new site to avoid errors.
./dbench -c frappe | root <command to run>
: Runs a command in the container, as the selected user.
./dbench -h
: Shows this help message.
./dbench <bench command>
: Runs a command in bench (i.e. Running ./dbench new-site site1.local
, will run bench new-site site1.local
in the container).
For more info on building this docker container refer to this Wiki
Feel free to contribute to this project and make it better.
This project is licensed under the MIT License - see the LICENSE.md file for details
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。