![]() Basically what this does is execute the "rsync" command with a few arguments. If you aren't familiar with shell scripting, that's ok. Rsync $ARGS -stats -progress -exclude-from=rsync_exclude.txt -e 'ssh'. If you want to use SSH, I put the following into a file named something like "upload.sh" and put it in my blog folder. Alternatively, you could use FTP to upload the entire local site, but it's harder to keep things in sync this way. I use rsync to sync my local version of the site up to the server. Then I can run this script with the command "./dbdump.sh" anytime I want to export my local database to an sql file to import on the live site.ģ. Perl -pi -e 's/mysite.local//g' mylocal_db_dump.sql # search inside the mylocal_db_dump.sql file for 'mysite.local' and replace with '' Mysqldump -u root mylocal_db > mylocal_db_dump.sql I put the following in a file called dbdump.sh: I do this using a little shell script that will search the mysql dump for my local url and replace it with the live one. That will let you use the same wp-config.php file on either server.Ģ. ** The name of the database for WordPress */ ![]() ** MySQL settings - You can get this info from your web host ** //Ĭase 'mysite.local': // local dev environment Edit your wp-config.php so it works on various environments. It does make use of the terminal a bit, but it's nothing too crazy, and might even be a good taste of how powerful it can be.ġ. Here is what I do for just about all of my WP sites. Thank you in advance for all of your help. What happens when they want to point their domain name to the new server? Do I have to change anything behind the scenes in wordpress? I understand I will need to change the address of my Blog in my local wordpress settings to the (IP address?) and then I will need to export my local database, upload all of the files to the new server (edit wp-config.php with new credentials), import the database and I think that's it? Is it ok if I use an IP Address for my Blog settings rather than a domain name? So how do I go about successfully moving this site to their server? I can currently access their new website (which is blank right now) by typing in the IP address of the server. The client's domain name currently points to a different server. The catch is that I'm going to be installing this onto a web server that doesn t have a domain name pointing to it. ![]() I need to move this site to the clients server. I an building out a wordpress site locally on my machine using MAMP. I have a questiion about moving and installing wordpress.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |