# Deploy to production never finishing

**URL:** https://community.forestadmin.com/t/deploy-to-production-never-finishing/70
**Category:** Help me!
**Created:** [May 5, 2020, 4:03pm UTC](https://community.forestadmin.com/t/deploy-to-production-never-finishing/70 "2020-05-05T16:03:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)
#### Post date: [May 5, 2020, 4:03pm UTC](https://community.forestadmin.com/t/deploy-to-production-never-finishing/70/1 "2020-05-05T16:03:23Z")

</div>

I tried to deploy to production, but the process never ends.

## Expected behavior

To be able to finish the deploy to production process.

## Actual behavior

I get an error on the front with `Waiting for your environment variables to be correctly set. If this error persists, please check your server logs.`

## Failure Logs

 ![Capture d’écran 2020-05-05 à 18.02.53](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/8fa05f23dba8ef87590c5f59a21fe8d1ce306b95.png)

## Context

- Package Version: 5.2.0
- Sequelize Version: 5.15.1
- Database Dialect: Postgres
- Database Version: 9.5.21

---

<div class="post-metadata">

### Author: ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)
#### Post date: [May 5, 2020, 4:29pm UTC](https://community.forestadmin.com/t/deploy-to-production-never-finishing/70/2 "2020-05-05T16:29:26Z")

</div>

Hello @anon62739609 👋

Juste a little question, do you make use of the `FOREST_DISABLE_AUTO_SCHEMA_APPLY` environment variable ?

If this is the case, you should use this variable when deploying to production (at least until everything is setup and working).

Can you try to restart your server without the environment variable please?

Keep me in touch 🙌

---

<div class="post-metadata">

### Author: ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)
#### Post date: [May 5, 2020, 4:37pm UTC](https://community.forestadmin.com/t/deploy-to-production-never-finishing/70/3 "2020-05-05T16:37:13Z")

</div>

Removing the `FOREST_DISABLE_AUTO_SCHEMA_APPLY ` worked ! Thanks 😃

---

<div class="post-metadata">

### Author: ![Ruslan\_Vasylenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/ruslan_vasylenko/32/3698_2.png) [@Ruslan\_Vasylenko](https://community.forestadmin.com/u/Ruslan_Vasylenko)
#### Post date: [December 6, 2021, 4:34pm UTC](https://community.forestadmin.com/t/deploy-to-production-never-finishing/70/4 "2021-12-06T16:34:16Z")

</div>

Hi!  
I removed `FOREST_DISABLE_AUTO_SCHEMA_APPLY` and it didn’t help!  
With this variable set to `true` server was logging  
`GET /forest 204`  
and  
`GET / 200` (I guess on opened production URL in browser trying to get the app)`  
each second.

After removing the variable, it logs the same, after

 ![Screenshot 2021-12-06 at 18.18.49](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/060abfab6b6ab19a0217e6f06637d8a76fd17105.png)

but there is nothing at the production URL and the warning remains instantly  
` Waiting for your environment variables to be correctly set. If this error persists, please check your server logs.`

Please, help
