I am trying to deploy Forest Admin from local environment to production. On local environment, everything is working just fine.
I am using
forest/sequelize. I didn’t used
forest-cli for creating the project, I used:
npx sequelize-cli init
This is my config and model structure:
.env file looks like this:
When I click on:
and enter my domain, I should enter the following variables in heroku.
In Heroku, I used
DATABASE_URL of the database that I created in Heroku. The other variables are applied exactly as was proposed.
Nevertheless, the application is not working
These are heroku logs:
at=error code=H10 desc="App crashed" method=OPTIONS path="/forest" host=forest-qms.herokuapp.com request_id=2225a6db-dc0c-4782-9451-6e571602dae1 fwd="220.127.116.11" dyno= connect= service= status=503 bytes= protocol=https
Regarding log message:
Your configDir ("/app/forest") does not exist. Please make sure it is set correctly.
I do not have such directory, but this structure is created only with
forest projects:create <project_name>
as far as I understood that.
- “forest-express-sequelize”: “^8.4.7”
- “pg”: “^8.6.0”
- “pg-hstore”: “^2.3.4”
- “express”: “^4.17.1”,
- Project Name: qms