• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Including environment variables in npm build deploy action.

DBandwerk

New Pleskian
I deploy my project through git and have added additional deploy actions, to build the JS from my Laravel project. My actions are as follows and function:
1657631697632.png

However, in my project's root there's a .env file (/var/www/vhosts/domain.com/sub.domain.com/.env) and the variables in there are not taken into the build, resulting in "undefined" values of the environment variables.

I have considered (and disregarded) the NodeJS option in Plesk and decided against because I don't want to serve a NodeJS project.

Thanks in advance
 
Back
Top