Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
377 views
in Technique[技术] by (71.8m points)

octobercms - where is the root page for my website coming from?

I checked out the source code for a website that my company runs with OctoberCMS via Git and got a DB dump and I'm not able to get my local copy of the website looking like the prod copy does.

In the myproject/themes/mytheme/pages directory there are three files:

  • home-page.htm
  • page1.htm
  • page2.htm

home-page.htm has the following:

title = "my_home"
url = "/home"
layout = "default"
is_hidden = 0
==
blah blah blah

On my local install /home returns the same content that / does on prod. Here's what / and /home do on both prod and local:

Local:

  • /home works
  • / returns an error 404

Prod:

  • / works (returns the same content as /home on local)
  • /home returns an error 404

Why is prod behaving differently than local? The fact that home-page.htm has url = "/home" makes me think that local is behaving correctly. So why is prod behaving the way it is then? Where should I be looking to figure this out?

question from:https://stackoverflow.com/questions/65853478/where-is-the-root-page-for-my-website-coming-from

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Turns out the production server was running https://octobercms.com/plugin/axmit-storage (which stores CMS content in the DB instead of the local FS) whereas the local server wasn't.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...