404 error when starting the page

9 views
Skip to first unread message

Alexander Ackermann

unread,
Dec 12, 2011, 4:58:55 PM12/12/11
to Zotonic developers
I woulg like to migrate a zotonic webapp from a running system to my
local machine. I've copied the directory structure recursively, but
not used the addsite command. Also i have imported the database using
the command line tool psql and imported a database dump. After
starting the site from the zotonic overview site, i'm getting a 404 in
the content area of the webpage, although the application itself is
running and header and footer is shown right apart from some small
errors . Is this an issue of a config file, is it sth. in the
database. Also i would like to know if there is a migration guide for
moving a zotonic application from one to another location.

Thanks in advance

Ahmed Al-Saadi

unread,
Dec 14, 2011, 3:13:37 AM12/14/11
to zotonic-d...@googlegroups.com, Alexander Ackermann
Are you sure you copied the db correctly (including putting data under
the correct schema or changing the schema reference in <your
site>/config)? That, along with not running 'make' after copying a site,
are common gotchas.

I usually store a site's tree using git (except for 'files' that I copy
manually!), then I dump/restore the db as you have described. I also
symlink the sites from a "sites" path that is outside of the zotonic
tree. It's as straightforward as that and there is no need to run a
special command!

-signed(ahmed).

Alexander Ackermann

unread,
Dec 14, 2011, 1:11:04 PM12/14/11
to Zotonic developers
Thank You,

In which context should i use the "make" command?

Ahmed Al-Saadi

unread,
Dec 14, 2011, 2:04:10 PM12/14/11
to zotonic-d...@googlegroups.com, Alexander Ackermann
In zotonic root. This compiles code including that inside the priv/sites
dir.
Reply all
Reply to author
Forward
0 new messages