Comments (4)
I believe this repo is a frontend to Hugo, not just a theme. You don't need to execute hugo new site with this one, instead:
- Clone the repo
- cd tailbliss
- sudo apt install npm
- sudo snap install go --classic
- sudo npm install
- sudo npm run build
To test if it's working (change to your PC IP)
sudo hugo server --bind 192.168.217.24 --baseURL http://192.168.217.24
Make your edits as you wish, and don't forget the config here is hugo.yaml not .toml (format of yaml is way better anyway)
To generate /public to upload to your website
sudo hugo --gc --minify
from tailbliss.
Thank you for your help @KhalilSecurity . it's working now
from tailbliss.
Hi @KhalilSecurity , I was trying to deploy the website on netlify but i got a failed build error :
3:22:00 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2) 3:21:59 PM: Netlify Build 3:21:59 PM: ──────────────────────────────────────────────────────────────── 3:21:59 PM: 3:21:59 PM: ❯ Version 3:21:59 PM: @netlify/build 29.17.1 3:21:59 PM: 3:21:59 PM: ❯ Flags 3:21:59 PM: baseRelDir: true 3:21:59 PM: buildId: 64c04ad11193bb10981e9731 3:21:59 PM: deployId: 64c04ad11193bb10981e9733 3:21:59 PM: 3:21:59 PM: ❯ Current directory 3:21:59 PM: /opt/build/repo 3:21:59 PM: 3:21:59 PM: ❯ Config file 3:21:59 PM: /opt/build/repo/netlify.toml 3:21:59 PM: 3:21:59 PM: ❯ Context 3:21:59 PM: production 3:21:59 PM: 3:21:59 PM: build.command from netlify.toml 3:21:59 PM: ──────────────────────────────────────────────────────────────── 3:21:59 PM: 3:21:59 PM: $ hugo --gc --minify 3:21:59 PM: Error: Unable to locate config file or config directory. Perhaps you need to create a new site. 3:21:59 PM: Run
hugo help newfor details. 3:21:59 PM: Total in 0 ms 3:21:59 PM: 3:21:59 PM: build.command failed 3:21:59 PM: ──────────────────────────────────────────────────────────────── 3:21:59 PM: 3:21:59 PM: Error message 3:21:59 PM: Command failed with exit code 255: hugo --gc --minify (https://ntl.fyi/exit-code-255) 3:21:59 PM: 3:21:59 PM: Error location 3:21:59 PM: In build.command from netlify.toml: 3:21:59 PM: hugo --gc --minify 3:21:59 PM: 3:21:59 PM: Resolved config 3:21:59 PM: build: 3:21:59 PM: command: hugo --gc --minify 3:21:59 PM: commandOrigin: config 3:21:59 PM: environment: 3:21:59 PM: - HUGO_VERSION 3:21:59 PM: - HUGO_ENV 3:21:59 PM: - HUGO_ENABLEGITINFO 3:21:59 PM: publish: /opt/build/repo/public 3:21:59 PM: publishOrigin: config 3:21:59 PM: redirects: 3:22:00 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 3:22:00 PM: Failing build: Failed to build site 3:22:01 PM: Finished processing build request in 14.718s 3:22:00 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2) 3:21:59 PM: Netlify Build 3:21:59 PM: ──────────────────────────────────────────────────────────────── 3:21:59 PM: 3:21:59 PM: ❯ Version 3:21:59 PM: @netlify/build 29.17.1 3:21:59 PM: 3:21:59 PM: ❯ Flags 3:21:59 PM: baseRelDir: true 3:21:59 PM: buildId: 64c04ad11193bb10981e9731 3:21:59 PM: deployId: 64c04ad11193bb10981e9733 3:21:59 PM: 3:21:59 PM: ❯ Current directory 3:21:59 PM: /opt/build/repo 3:21:59 PM: 3:21:59 PM: ❯ Config file 3:21:59 PM: /opt/build/repo/netlify.toml 3:21:59 PM: 3:21:59 PM: ❯ Context 3:21:59 PM: production 3:21:59 PM: 3:21:59 PM: build.command from netlify.toml 3:21:59 PM: ──────────────────────────────────────────────────────────────── 3:21:59 PM: 3:21:59 PM: $ hugo --gc --minify 3:21:59 PM: Error: Unable to locate config file or config directory. Perhaps you need to create a new site. 3:21:59 PM: Run
hugo help new for details. 3:21:59 PM: Total in 0 ms 3:21:59 PM: 3:21:59 PM: build.command failed 3:21:59 PM: ──────────────────────────────────────────────────────────────── 3:21:59 PM: 3:21:59 PM: Error message 3:21:59 PM: Command failed with exit code 255: hugo --gc --minify (https://ntl.fyi/exit-code-255) 3:21:59 PM: 3:21:59 PM: Error location 3:21:59 PM: In build.command from netlify.toml: 3:21:59 PM: hugo --gc --minify 3:21:59 PM: 3:21:59 PM: Resolved config 3:21:59 PM: build: 3:21:59 PM: command: hugo --gc --minify 3:21:59 PM: commandOrigin: config 3:21:59 PM: environment: 3:21:59 PM: - HUGO_VERSION 3:21:59 PM: - HUGO_ENV 3:21:59 PM: - HUGO_ENABLEGITINFO 3:21:59 PM: publish: /opt/build/repo/public 3:21:59 PM: publishOrigin: config 3:21:59 PM: redirects: 3:22:00 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 3:22:00 PM: Failing build: Failed to build site 3:22:01 PM: Finished processing build request in 14.718s
This is the link to my repo https://github.com/jesicasusanto/oa.blog
The error is indicating that it is unable to locate config file.
from tailbliss.
Looks similar to this issue #123
Also mentioned in official netlify docs
https://docs.netlify.com/integrations/frameworks/hugo/
The fix there was to update netlify.toml
with the correct version of hugo you run locally. So from you local environment command line execute hugo version
. It should tell you the version number
~/tailbliss$ hugo version
hugo v0.115.3-5c2e014a5150553a9fa4f9c1eb7dc4db89c0f1ab+extended linux/amd64 BuildDate=2023-07-13T16:11:34Z VendorInfo=gohugoio
so I would update netlify.toml to reflect (update in all 4 spots in the file not just one)
HUGO_VERSION = "0.115.3"
from tailbliss.
Related Issues (20)
- mysql issue HOT 1
- Could not resolve "alpinejs" HOT 18
- Include non-theme content in build pipeline? HOT 1
- Can't build site nor launch server HOT 2
- Can't access new HTML file created in the layouts folder HOT 3
- Please ignore
- Dark text on dark background
- How do you change colors? HOT 4
- On Cloudflare Pages only production branch works, but any other fails HOT 1
- style.css line 3404 HOT 2
- Issues deploying on Netlify but everything works locally HOT 4
- Document how to utilize the contact me page HOT 2
- Difficulty getting framework to properly render on development server from 0.0.0.0 HOT 3
- Image processing HOT 3
- markdown-it support HOT 2
- new list arrangement HOT 1
- I tried it on windows with npm 6.14.8 and got below errors HOT 1
- [BUG] baseURL Causing CSS Linking Errors HOT 2
- Some things don't work with Hugo 0.127 on Linux/Firefox HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailbliss.