Jump to content

Export Profile


clsource
 Share

Recommended Posts

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 :P

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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.

  • Like 3
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.... O0

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

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.. :)

  • Like 2
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...