Forum
dev to live
its been a while since a put a site live. I currently have a site all done and dusted on a dev.address now i want to put in on the live address.
I need to change the config ?
the database needs moving?
config currently looks like this
define("PERCH_DB_USERNAME", 'griff_dan');
define("PERCH_DB_PASSWORD", '******');
define("PERCH_DB_SERVER", "localhost");
define("PERCH_DB_DATABASE", "griff_data");
define("PERCH_DB_PREFIX", "perch2_");
https://docs.grabaperch.com/perch/building/servers/how-do-i-move-a-perch-site/
thank you very much, support on a sunday too! I realise that is a very good informative link. One thing I am wondering though is my dev. address is just a dev.address in a 'dev.' folder in the site root folder of where the live site is. My database is on the same server linked to the site. I'm struggling to think how the database is not already in the correct place
If the database is already where you need it then no, no point in moving it.
Thanks Drew - see dev and live addresses here:
dev.griffbuild.co.nz
www.griffbuild.co.nz
Do I have a template in wrong location situation ?
What problem are you seeing? I don't think you've described the issue we're trying to solve.
There are parts of the live site above, that are not appearing as in the dev site above.
I'm not sure if this is the pages not linking to perch as it is in dev, or not linking to the database or not linking to css.
Your live site is not parsing PHP tags - try renaming your
index.html
toindex.php
Thanks Drew, it seems that is the issue
the dev folder AND the live folder both have the rolling htaccess file in their folders:
I wonder why this wouldn't work for the live site as it does the dev site...
You should ask your host if you've got issues configuring the web server.
thanks Drew the host helped out now all good