• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!

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