Hello!
I’ve copied and had a look at the example repo for a PHP based application, my folder structure in the repo is as follows
src/ _site/index.php composer.json gulpfile.js package.json
So my actual “application” that I want apache to serve from is in under _site.
My gulpfile copies stuff from src, compiles it and puts it into _site/assets/ which i’ve got working as apart of the build process.
I did try just have it move _site/* to /workspace/* but didn’t feel like that was the best thing to do, Anyone have some suggestions or what I can do?
Currently its running heroku-php-apache2 to start it, is there a way I can easily even change the apache path rather than moving stuff?
Cheers!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey there!
You should be able to specify the document root folder to use in your heroku-php-apache2 run command. Something like:
heroku-php-apache2 _site/
As App Platform uses Heroku build-packs the configuration is similar.
Hope it helps! Nate
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.