mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-24 19:10:25 +00:00
Merge pull request #334 from revant/feat-frappe-commands
feat: frappe commands
This commit is contained in:
commit
edba3af662
@ -201,6 +201,13 @@ elif [ "$1" = 'restore-backup' ]; then
|
|||||||
&& python /home/frappe/frappe-bench/commands/restore_backup.py"
|
&& python /home/frappe/frappe-bench/commands/restore_backup.py"
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
elif [ "$1" = 'bench' ]; then
|
||||||
|
|
||||||
|
exec su frappe -c '/home/frappe/frappe-bench/env/bin/python \
|
||||||
|
/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py \
|
||||||
|
frappe "$@"'
|
||||||
|
exit
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
exec su frappe -c "$@"
|
exec su frappe -c "$@"
|
||||||
|
@ -408,3 +408,9 @@ docker run \
|
|||||||
-v frappebench00_sites-vol:/home/frappe/frappe-bench/sites \
|
-v frappebench00_sites-vol:/home/frappe/frappe-bench/sites \
|
||||||
--network frappebench00_default \
|
--network frappebench00_default \
|
||||||
frappe/erpnext-worker:edge console pgsql.localhost
|
frappe/erpnext-worker:edge console pgsql.localhost
|
||||||
|
|
||||||
|
echo -e "\e[1m\e[4mCheck bench --help\e[0m"
|
||||||
|
docker run \
|
||||||
|
-v frappebench00_sites-vol:/home/frappe/frappe-bench/sites \
|
||||||
|
--network frappebench00_default \
|
||||||
|
frappe/erpnext-worker:edge bench --help
|
||||||
|
Loading…
Reference in New Issue
Block a user