[site-name]/hrms Page Blank

First i was succesfull installing erpnext using this code from

and i was using this code to install hrms

bench get-app hrms –branch -version-15
bench --site [site-name] install-app hrms
bench restart
bench migrate
exit
docker restart frappe-backend-1

but when i want to access https://[site-name]/hrms
this page become blank and this 404 on the console

2 Likes

I have the same issue too unfortunately, but no one even tries to help :frowning:

Solution try it:

# Go to Bench Directory
cd frappe-bench

# build frontend assets
bench build

# clear cache and restart
bench --site [site-name] clear-cache
bench --site [site-name] clear-website-cache
bench restart

As far as I know the only way to install new apps in docker is deleting all the containers and doing the below. ChatGPT says there is no other sollution: -

To create docker multi-site and multi-app please use easy-install.py: -

  1. wget https://raw.githubusercontent.com/frappe/bench/develop/easy-install.py

  2. git clone GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext

  3. In “frappe_docker/development/apps-example.json” edit your apps with their branch: -
    [
    { “url”: “GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)”, “branch”: “version-15” },
    { “url”: “GitHub - frappe/hrms: Open Source HR and Payroll Software”, “branch”: “version-15” },
    { “url”: “GitHub - frappe/education: Open source education / school management system”, “branch”: “version-15” },
    { “url”: “GitHub - frappe/crm: Fully featured, open source CRM”, “branch”: “main” },
    { “url”: “GitHub - frappe/wiki: Free and Open Source Wiki built on top of Frappe”, “branch”: “master”},
    { “url”: “GitHub - Aakvatech-Limited/csf_tz: Country Specific Functionality Tanzania”, “branch”: “master”}

  4. python3 easy-install.py build

  5. python3 easy-install.py deploy --image=custom-apps --version=latest --sitename=bench3site1.duckdns.org --sitename=bench3site2.duckdns.org --sitename=bench3site3.duckdns.org --app=erpnext --app=hrms --app=education --app=crm --app=wiki --app=csf_tz

For step 4 and 5 if you want more options rather than default values please check out GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

Don’t forget to add the sites to your host file

1 Like

Therefore once you choose your apps in docker you cannot add without removing everything… can someone correct me if I am wrong… Tnx

1 Like

Hey, I figured out the solution since when I used Docker to install ERPNext, it had to generate custom images when I wanted to add apps.

I simply use bench for direct installation, and I use

bench get-apps hrms
bench --site [name of site] install-app hrms
bench --site [name of site] migrate

credit:

to the best of my knowledge you can do that on a VM … on docker you are going to face problems