Skip to content
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

Issues with deployment #94

Open
advasan opened this issue Aug 25, 2021 · 4 comments
Open

Issues with deployment #94

advasan opened this issue Aug 25, 2021 · 4 comments

Comments

@advasan
Copy link

advasan commented Aug 25, 2021

Has anyone successfully deployed this site? Having issues with it following the instructions provided. Also tried Netlify but get a 404 error there as well.

@PythonCoderUnicorn
Copy link

PythonCoderUnicorn commented Jan 24, 2022

Has anyone successfully deployed this site? Having issues with it following the instructions provided. Also tried Netlify but get a 404 error there as well.

I have tried to deploy to Netlify as well but keep getting error 404 page not found.

i use blogdown:::serve_site() for it to run locally, no problem there.

On Netlify my settings are

# Build settings
Base Directory: Not set
Build command: Hugo
Publish directory: public
Deploy log visibility: Logs are public
Builds: Active

# Branches
Production branch: main
Branch deploys: Deploy only the production branch

# Environment variables
HUGO_VERSION  *******

FIX:
in the config.yml change the baseurl
baseurl: <YOUR_WEBSITE-NAME.netlify.app>

@simon-scmp
Copy link

Also having real problems even deploying to internal Apache2 server. All style sheets gone. manually changing path from /css to ../css in the /posts/index.html file kind of works and gets it looking somewhat like the dev server but appears there will be lots of manual editing to make it work.
I just Do NoT understand in many Hugo builds I've done with various themes; they all work fine on the localhost:1313 server and look brilliant as soon as you create the file to publish it all falls apart. Just wish could grab that working copy in the dev server and use that. It's not in this case the baseurl issue either.

@simon-scmp
Copy link

having just spent the last hour + manually editing every html file on the site it looks like most of the paths to things like css files and other pages need to be referenced one or two directories up so it made css/xxxx it should be ../../css/xxx so annoying.

@kishaningithub
Copy link
Owner

@simon-scmp Happy to review a PR! ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants