# Deploy to production doesn't work

**URL:** <https://community.forestadmin.com/t/deploy-to-production-doesnt-work/610>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [July 5, 2020, 7:37pm UTC](https://community.forestadmin.com/t/deploy-to-production-doesnt-work/610 "2020-07-05T19:37:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsdanny](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dsdanny](https://community.forestadmin.com/u/dsdanny)\
**Post date:** [July 5, 2020, 7:37pm UTC](https://community.forestadmin.com/t/deploy-to-production-doesnt-work/610/1 "2020-07-05T19:37:11Z")

</div>

Hello, I cannot deploy to production I have this error:  
 ![forestadminerror](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/f1dd09091a4effd4d3f6dce8bcae0d6df3e189e7.png)  
my server is working fine and the .env is not detected by forestadmin

What can be done to solve this problem?

---

<div class="post-metadata">

**Author:** ![rap2h](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/rap2h/32/25_2.png) [@rap2h](https://community.forestadmin.com/u/rap2h)\
**Post date:** [July 6, 2020, 7:59am UTC](https://community.forestadmin.com/t/deploy-to-production-doesnt-work/610/2 "2020-07-06T07:59:37Z")

</div>

Hi @dsdanny 👋

Could you check your server logs? You should see a call (or at least a call attempt) from Forest Admin UI. Also, is there something special to know about your server configuration? (about security, installation, access, …)

> .env is not detected by Forest Admin

Could you explain what you mean? The `.env` file itself is not visible via Forest Admin UI. It is used by your server when it is initialized. Does this file actually exist on your production server (you could also have used environment variables)?

One more question: is your server responding to Forest Admin at the URL root level? (when I go to the URL [https://admin.betsurvivor.com/](https://admin.betsurvivor.com/), I only see a response by apache about an empty server, you should see the “your application is running” message).

---

<div class="post-metadata">

**Author:** ![dsdanny](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dsdanny](https://community.forestadmin.com/u/dsdanny)\
**Post date:** [July 7, 2020, 11:23am UTC](https://community.forestadmin.com/t/deploy-to-production-doesnt-work/610/3 "2020-07-07T11:23:46Z")

</div>

Problem fixed. I had to redirect my subdomain to the right port and activate the ssl certificate

```javascript
<VirtualHost *:80>
    ServerName subdomain.yourdomain.com
    ProxyPreserveHost on
    ProxyPass / http://localhost:3310/
</VirtualHost>

```
