• Can I develop a WordPress site on a local PC or Mac with Apache using localhost and periodically ftp files or upload data tables to a production site? Can someone either explain what is involved or provide links to this information. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • yes, it′s possible. You can use MAMP:

    https://athemes.com/tutorials/install-wordpress-locally-using-mamp/

    or just a manual local Apache installation.

    I would suggest you to trick your host file whenever you are developing against your real domain. So you can have:

    https://www.mydomain.com 127.0.0.1

    pointing to your local machine. That lets you to have your WordPress installation and database exactly as in production, so no change needs to be done when you upload any change

    Yes, you can.
    Depending on what you are developing, though, it would be different advice.

    For something like a theme or plugin, it’s definitely the way to go. Get it all working and then FTP the files or install the theme or plugin on the live site.

    But if it’s content, then the only files are media, and you would still need to add them into the database. The content itself is only in the database(no files). And there are differences in your options details in the database of local and live, so you can’t just export and import the whole database.
    This is where migration plugins come in handy. This type of plugin will ask you for what you want to change in the database before you export the data, and then importing it works correctly. But only use this for total replacement, because it’s a lot of data (plugins usually pack up the files too).

    There are other plugins that just do import/export on content, but you have to be careful about whether it will add duplicates or update the old ones.
    There are other plugins that help you make mass changes (like for store inventory) in an interface much like a spreadsheet, and still others that export to CSV so you can use a spreadsheet program to edit and then import using update (no duplicates).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Develop on local host and upload to production site’ is closed to new replies.