WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help please...Same site locally on two different computers? (5 posts)

  1. capi222
    Member
    Posted 2 years ago #

    Hi all. New to WP and was hoping for a little helpful insight. I am using WAMP locally to build a site at work. I am wondering if I can install WAMP and WP on another computer and develop this site between work and home?

    In theory I think I could just copy the whole site folder from the work computer to a flash drive after working for the day and drop it in the correct WAMP folder at home and it should bring in the updated site when I go to localhost, no?

    Anyone else have any luck with this?

    Thanks in advance to any help

  2. dkotter
    Member
    Posted 2 years ago #

    It depends on what changes you are making. If it's just changes to a theme, then the above should work. If you are adding content into WordPress, that content is stored in a database, so you'd need to copy the database over as well to have the same content on both computers.

  3. capi222
    Member
    Posted 2 years ago #

    Thanks for the response, dk. So if I just export my db out of WAMP on the work computer, copy the site folder as well and then @ home copy the site folder into the WAMP directory and import the db back into WAMP I should be good to go you think?

  4. dkotter
    Member
    Posted 2 years ago #

    You should be, as long as your folder structure is all the same, because WordPress puts two URL's in the database that correspond to the site. These URLS are in the wp_options table and are called siteurl and home. So on my Mac, developing locally, my URL is

    http://localhost:8888/FOLDER-NAME/

    And on another Mac, as long as I set up MAMP the same, that URL stays the same. So you'd need to make sure your URLs are the same on both computers. Just something to keep in mind.

  5. capi222
    Member
    Posted 2 years ago #

    Thanks for your time kind sir!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.