Question

How do I configure a static site build path?

I’m trying to get started with the new DigitalOcean Apps. Since I’m using a non-standard static site generator (jigsaw). I have problems finding solid documentation on how to set the static site build or output path.

I did find some documentation and samples showing a .do folder with an app.yaml and other yaml configuration, although trying to use the same did not work for me. It seemed like those config files got ignored by DO and I also couldn’t find any settings to add configuration on my own.

The error message I’m getting is the following: => Static site output directory is not explicitly set, attempting to look for static files sitename | 15:34:47 Checking /workspace/_static sitename | 15:34:47 Checking /workspace/dist sitename | 15:34:47 Checking /workspace/public sitename | 15:34:47 ! No static site build path was found

I’d be glad for any help. Thanks.


Submit an answer


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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Dikshith Shetty
DigitalOcean Employee
DigitalOcean Employee badge
October 30, 2020
Accepted Answer

Hello @dirgl

By default, our system will look at the directory: _static, dist, public at this time. You can explicitly set the output directory path for the rendered assets in the app specification with the API or doctl using the output_dir field.

Please note just creating the app.yaml file inside.do directory won’t update the app. In our sample apps, those files are created for reference. You have to create the app.yaml file locally and then apply it to your app using API or doctl.

Documentation links which might help: https://www.digitalocean.com/docs/app-platform/references/app-specification-reference/ https://www.digitalocean.com/docs/app-platform/references/command-line/ https://www.digitalocean.com/docs/app-platform/references/api/

Tip: When submitting any questions related to App Platform please add the tag “DigitalOcean App Platform” which will filter the community questions to App Platform Specialists.

Cheers,

Dikshith

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel