[Guide] ERPNext-14 Production Setup (Docker)

if you DB_PASSWORD is 123

The HASHED_PASSWORD is in hash format.

its not the same

your site may crashed or not set it properly. please create new site with proper site name.

hrms@prerana.com 

this is a mail format. its not a site format

@Antony_Praveenkumar I have follow all process how to acces the erpnext ?

On domain or on IP ?

you should access the erpnext with your domain

ok thanks it working

1 Like

@revant_one @Antony_Praveenkumar traefik is renew the ssl certificate ? after the expire ? or any another method

Its renew automatically every three months.

1 Like

@Antony_Praveenkumar @revant_one

We did a frappe installation using the frappe-docker but we face one issue

When we exec into docker and make some changes inside frappe apps this changes is not reflected after the reload
At same time when we make some changes inside the ERPNext app codebase these changes are reflected so can please help us to find out the issue.

please help

for more info

please check

Build custom image, read FAQ. Frequently Asked Questions ¡ frappe/frappe_docker Wiki ¡ GitHub

1 Like

You should use Custom APP. Don’t change code in frappe or erpnext or any other app. create own custom app and override other app functionality from there.

1 Like

You DO NOT need following:

  • for custom frappe pass FRAPPE_PATH=<your url url> and FRAPPE_BRANCH=<your repo branch>
  • for custom ERPNext use your fork repo url and fork repo branch in apps.json
1 Like

@revant_one thanks for replay

suppose we fork the frappe and erpnext repo and make some changes according to me and build image.

But if i want to update v14.70.1 to v14.70.2 . Due to iam fork that repo so we can get the benifit of this ?

What can i do sync fork or pull request ?

note - code i have changes is not changes when we do fork or pull request ?

please suggust me .

Or is there any conflicts at the time of request

That’s why you do not need this.

Use this approach instead,

If you are a contributor, your fork is ahead of frappe and after merge you know what will be synced, go ahead fork. Eventually you will be in sync with upstream.

If you fork and diverge, you are on your own with your own strategies to sync.

1 Like

This error log of traefik docker container please check- I was follow same process above.

Is there any port open is needed ?

please help me figure out this what this issue ??

Hello @Antony_Praveenkumar

Please help to figure out this issue, I have go an error at the time of the build docker image with an custom app

subprocess.CalledProcessError: Command ‘yarn install --check-files --verbose’ returned non-zero exit status 1.

For buliding a docker image i have used following command

docker build --no-cache \
              --build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
              --build-arg=FRAPPE_BRANCH=version-15 \
              --build-arg=PYTHON_VERSION=3.11.9 \
              --build-arg=NODE_VERSION=18.20.2 \
              --build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
              --tag=teqsyscad_customapp:beta \
              --file=images/custom/Containerfile .
subprocess.CalledProcessError: Command 'yarn install --check-files --verbose' returned non-zero exit status 1.
93.80 
93.80 The above exception was the direct cause of the following exception:
93.80 
93.80 Traceback (most recent call last):
93.80   File "/usr/local/lib/python3.11/site-packages/bench/commands/make.py", line 75, in init
93.80     init(
93.80   File "/usr/local/lib/python3.11/site-packages/bench/utils/render.py", line 105, in wrapper_fn
93.80     return fn(*args, **kwargs)
93.80            ^^^^^^^^^^^^^^^^^^^
93.80   File "/usr/local/lib/python3.11/site-packages/bench/utils/system.py", line 87, in init
93.80     get_app(
93.80   File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 781, in get_app
93.80     app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
93.80   File "/usr/local/lib/python3.11/site-packages/bench/utils/render.py", line 126, in wrapper_fn
93.80     return fn(*args, **kwargs)
93.80            ^^^^^^^^^^^^^^^^^^^
93.80   File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 253, in install
93.80     install_app(
93.80   File "/usr/local/lib/python3.11/site-packages/bench/app.py", line 943, in install_app
93.80     bench.run(yarn_install, cwd=app_path)
93.80   File "/usr/local/lib/python3.11/site-packages/bench/bench.py", line 49, in run
93.80     return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise, env=env)
93.80            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93.80   File "/usr/local/lib/python3.11/site-packages/bench/utils/__init__.py", line 184, in exec_cmd
93.80     raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
93.80 bench.exceptions.CommandFailedError: yarn install --check-files --verbose
93.80 
93.80 ERROR: There was a problem while creating /home/frappe/frappe-bench
93.80 Do you want to rollback these changes? [y/N]: Aborted!
------
Containerfile:118
--------------------
 117 |     ARG FRAPPE_PATH=https://github.com/frappe/frappe
 118 | >>> RUN export APP_INSTALL_ARGS="" && \
 119 | >>>   if [ -n "${APPS_JSON_BASE64}" ]; then \
 120 | >>>     export APP_INSTALL_ARGS="--apps_path=/opt/frappe/apps.json"; \
 121 | >>>   fi && \
 122 | >>>   bench init ${APP_INSTALL_ARGS}\
 123 | >>>     --frappe-branch=${FRAPPE_BRANCH} \
 124 | >>>     --frappe-path=${FRAPPE_PATH} \
 125 | >>>     --no-procfile \
 126 | >>>     --no-backups \
 127 | >>>     --skip-redis-config-generation \
 128 | >>>     --verbose \
 129 | >>>     /home/frappe/frappe-bench && \
 130 | >>>   cd /home/frappe/frappe-bench && \
 131 | >>>   echo "{}" > sites/common_site_config.json && \
 132 | >>>   find apps -mindepth 1 -path "*/.git" | xargs rm -fr
 133 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c export APP_INSTALL_ARGS=\"\" &&   if [ -n \"${APPS_JSON_BASE64}\" ]; then     export APP_INSTALL_ARGS=\"--apps_path=/opt/frappe/apps.json\";   fi &&   bench init ${APP_INSTALL_ARGS}    --frappe-branch=${FRAPPE_BRANCH}     --frappe-path=${FRAPPE_PATH}     --no-procfile     --no-backups     --skip-redis-config-generation     --verbose     /home/frappe/frappe-bench &&   cd /home/frappe/frappe-bench &&   echo \"{}\" > sites/common_site_config.json &&   find apps -mindepth 1 -path \"*/.git\" | xargs rm -fr" did not complete successfully: exit code: 1

check the value is set or not , if not please set the correct value

echo $APP_INSTALL_ARGS