Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to deploy a local WP to a live version

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39755
    MrPaulsen
    Participant

    Okay I have this MEGA issue/question, which I hope you guys can help me with! :)

    I do a little bit of theme-customization for some clients I have. I would like to take the development OFFLINE.

    This of course means installation of MAMP and setting up a local dev. environment. No problem, this is already done.

    But here is the question that no tutorial covers:

    How do i deploy the site? without breaking any custom HTML/links and such? Because you could have arbitrary HTML widgets with URL that are referenced and used trough the wordpress media uploader? and these will surely be broken when uploaded to the hosting server.

    How do you guys go about this?

    I really hope to get some clarity on this matter, so that I can take my development process 100% offline! :)

    #109666
    Harlekin
    Member

    I just had to do this a few days ago. What I did is the following:

    – Download your MySQL DB as a .sql file
    – Open the file with your text-editor of choice
    – Make a full search & replace by replacing your current website url (for example: http://localhost:8888/yourwpwebsite) with your new url (for example: http://www.myawesomewebsite.com )
    – Then upload your edited sql file to your online server and copy your development wp files to your server aswell.

    If you did everything right, you should be just fine.

    Hope this helps.

    #109599
    MrPaulsen
    Participant

    Thanks for the comments so far :)

    I will try this out! I hope @TheDoc will come and answer this thread.

    #109602
    SgtLegend
    Member

    Also you might also want to consider using the serialized search and replace script that safely updates the domain links in your database.

    http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

    #109694
    TheDoc
    Member
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.