Deployment to production

Hi,

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:

My .env file looks like this:
image

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 :confused:

These are heroku logs:

and also

at=error code=H10 desc="App crashed" method=OPTIONS path="/forest" 
host=forest-qms.herokuapp.com request_id=2225a6db-dc0c-4782-9451-6e571602dae1
fwd="95.115.93.230" 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.

Thank you,

Vaclav

Context

  • “forest-express-sequelize”: “^8.4.7”
  • “pg”: “^8.6.0”
  • “pg-hstore”: “^2.3.4”
  • “express”: “^4.17.1”,
  • Project Name: qms

Hi @Vaclav :wave: In Forest Admin deploy to production means take your development code and deploy it to Heroku for exemple.
You don’t need to recreate a “project directory”.

You try to install Forest Admin on an existing project, so you must manually manage your connection and variable linked to it (eg: DATABASE_URL).
In fact we have a little error on the deployment process and this environment variable should not appear here (eg: express_sequelize://undefined:undefined/undefined).

What I see that’s about what you did.

The warning message about configDir it is not blocking here.
This directory is linked to our smart feature (eg: smart field, smart action, …) if you want to use it you must manually create this directory.
This another purpose.

What I see here you have an error with your connection, see the Sequelize error message on your screen. Maybe you use postgres connection with SSL=true? Or something like that?
This is probably what causes the app crashed message.

So i suggest you to try and look for your connection / Heroku postgres settings.
Let me know if that help.