• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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