ENOENT: no such file or directory, stat '/home/node/app/_build/index.html'
Hi, I tried to run Kotahi docker stack in Dev mode via these steps
git clone https://gitlab.coko.foundation/kotahi/kotahi.git
cd kotahi
vim .env
POSTGRES_USER="test"
POSTGRES_PASSWORD="test"
POSTGRES_DB="test"
ORCID_CLIENT_ID="test"
ORCID_CLIENT_SECRET="test"
vim docker-compose.yml
services:
client:
...
environment:
...
- CLIENT_PROTOCOL=http
...
db:
image: postgres:10-alpine
ports:
- ${POSTGRES_PORT:-5432}:5432
environment:
- POSTGRES_USER=${POSTGRES_USER:-dev}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
- POSTGRES_DB=${POSTGRES_DB:-ncbi_dev}
docker-compose up
stack run normally
docker-compose ps
Name Command State Ports
-------------------------------------------------------------------------------------
kotahi_client_1 docker-entrypoint.sh node_ ... Up 0.0.0.0:4000->4000/tcp
kotahi_db_1 docker-entrypoint.sh postgres Up 0.0.0.0:5432->5432/tcp
kotahi_job-xsweet_1 bash ./scripts/wait-for-it ... Up
kotahi_server_1 node_modules/.bin/wait-for ... Up 0.0.0.0:3000->3000/tcp
but on Kotahi server url I have
{
message: "ENOENT: no such file or directory, stat '/home/node/app/_build/index.html'"
}
In Kotahi server container static files are in /home/node/app/app
docker exec -ti kotahi_server_1 sh
$ pwd
/home/node/app
$ ls /home/node/app/app
Root.jsx app.js components globals.js hooks index.ejs index.html queries routes.js shared sortAndGroup.js storage theme
The renaming /home/node/app/app -> /home/node/app/_build
or making symlink _build -> app
isn't solve the problem.
I don't used gitlab-ci to make build
How can I get working properly Kotahi server in dev mode?
There are any workarounds?