clsource Posted March 5, 2014 Posted March 5, 2014 Hello, I'm using Processwire 2.4 and I need to export the profile for migrating. But the site is a little heavy and Export Module hangs in the middle creating corrupt files. How I can recreate what Export Module does? The Sql dump is generated, but not the complete install profile. Thanks
clsource Posted March 5, 2014 Author Posted March 5, 2014 nevermind I found something here http://processwire.com/talk/topic/3113-how-to-transfer-processwire-from-local-installation-to-online/?hl=%2Bexport+%2Bsite#entry30649
pwired Posted March 5, 2014 Posted March 5, 2014 Soma posted about this in the past how to do this the straight way: backup your database.sql backup the site folder install processwire on the new host replace the site folder with the backup site folder import your backup database.sql 1
clsource Posted March 5, 2014 Author Posted March 5, 2014 Thanks, that worked fine. but I must use a stripped down version of Processwire or else I would have clutter with templates, pages and fields that comes predefined.
pwired Posted March 5, 2014 Posted March 5, 2014 but I must use a stripped down version of Processwire Soma has also made a blank profile for this. http://modules.processwire.com/modules/processwire-blank-install/ Or you can make your own template and inc files. 1
Joss Posted March 5, 2014 Posted March 5, 2014 You can also just zip the entire site up, put it in the new location and change the DB values in config.php. I always work like that - I develop on an old box locally that is set up with ubunto and virtualmin so that I am always developing as a root installation and then just move the entire thing to wherever it is needed. Much easier for a non-tech like me. I never use export profile to move a site, just to create profiles for multiple use. Edit; oh, yeah, I forgot you need to export/import the DB ... But quick and easy to do. 3
Soma Posted March 5, 2014 Posted March 5, 2014 No need for blank profile. Just replace site folder and import db. There will be no fields or templates from default... you replace them. 1
pwired Posted March 5, 2014 Posted March 5, 2014 I develop on an old box locally that is set up with ubuntu I am going to switch to linux also. In April XP is not accepted anymore by Banks to do telebanking or only at your own risk. In case something happens Banks do not pay anything back. Tired of Win 8/8.1 already. Win9 is announced already to replace 8/8.1. No windows 7/8/9/10 for me anymore. The latest LibreOffice has become as good as M$ Office / and so on.
Joss Posted March 5, 2014 Posted March 5, 2014 I must admit I spend about half my life writing and I hate Libre Office - it feels as clunky as anything and very dated to use. I have it to keep compatibility with my daughter who is writing a thesis that I am helping her edit. Not a linux lover either for desktops, but it is great as an easy server set up - I have it on an ancient old Dell that fell out of use.
pwired Posted March 5, 2014 Posted March 5, 2014 Many people still have old idea's or opinions about Linux Desktop, (not saying you have) but Linux Desktop has come a long way. It is no longer only for nerds or specialists. Some distro's are very much the same in look and feel as windows.http://manjaro.org/ 1
kongondo Posted March 5, 2014 Posted March 5, 2014 Many people still have old idea's or opinions about Linux Desktop, (not saying you have) but Linux Desktop has come a long way. It is no longer only for nerds or specialists. Some distro's are very much the same in look and feel as windows. http://manjaro.org/ True....but they are just not Windows... Nothing out there currently beats Word and Outlook & exchange server combo....
Joss Posted March 5, 2014 Posted March 5, 2014 Yes, I did install a linux desktop last year just for fun and It worked okay. But for my family who not only are not very computer literate but have no intention of becoming so (and neither should they have to), they took one look at it and went, no thanks - back to Macs and Windows 7/8 they went. Obviously, from my point of view, the major DAWs and other production software that I use for my work simply do not run on Linux anyway. Kongondo makes a good point about Outlook and Office - I have used Thunderbird for years, but when my version broke I thought I would try outlook since I use office 365 already. And outlook is so much slicker that I have stayed using that combined with Onenote (which I love) ever since. Anyway, enough thread hijacking! Sorry.....
teppo Posted March 6, 2014 Posted March 6, 2014 You can also just zip the entire site up, put it in the new location and change the DB values in config.php. Exactly what I've been doing too. Too lazy to go through install routine, I guess.. 2
clsource Posted March 8, 2014 Author Posted March 8, 2014 So, I managed to make a complete migration. but something went wrong The development server was in root / and the production server was in a sub directory /pw All the links were mess up. So how I fixed it?Change all redirections inside my templates from using path to url $people = $pages->get('/system/people'); // Changed this $session->redirect($people->path); $session->redirect($people->url); made a backup of the site dumping the complete database. Copied and and pasted the files, changing the mysql connection in config.php.Still the links were Wrong.So I installed the site in Localhost, and using Export Module I managed to make a install profile. and success!, complete migration from develop server to production. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now