-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hybrid configuration environment #7
Comments
Hi @dacodekid Unfortunately there isn't a way to override the detection logic at this time. We can look into adding a Example Dockerfile: FROM node:16 AS node
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . /app
RUN yarn build
FROM klakegg/hugo
WORKDIR /app
COPY --from=node /app .
RUN hugo -d build For Dockerfile-based static site builds you'll need to set the name: project_name
static_sites:
- name: client
dockerfile_path: Dockerfile
github:
repo: owner/repo
branch: main
output_dir: /app/build It's also important that the command that generates the static assets is entered as a I haven't tested it but that should be the rough idea. Sorry for the inconvenience here but I hope that helps! If you run into any issues please post on the community Q&A. We closely monitor incoming questions and make sure to answer them all: https://www.digitalocean.com/community/questions/new?tags=Digitalocean%20App%20Platform (make sure to add the DigitalOcean App Platform tag). |
It took me several (!!!) tries, but I was finally able to use My setup was that Option 1 Option 2
# Dockerfile
FROM klakegg/hugo:ext-alpine-onbuild
WORKDIR /app
COPY . /app
RUN hugo -d build and they all lived happily ever after !! Hope it helps someone else as well. Please feel free to close this issue. EDIT: Added |
Here is my clone of this repo. Just tested it in |
My
hugo
app haspackage.json
file (for ex:tailwindcss
,postcss
, etc) along withhugo
'sconfig.json
file. DO's app platform recognize this as anode.js
app.In a same situation for
python-heroko
environment (i usedokku
), I addruntime.txt
to identify it aspython
app. Can we do something similar here?The text was updated successfully, but these errors were encountered: