Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

how to localhost to production?

deploylocalhostproduction
    • 10 years, 6 months ago imteddy
      Participant

      Expired

      Hi,

      I have imported dummy data and worked on localhost (development machine).

      I exported a SQL dump from phpmyadmin and replaced all local url with production url as usual.

      When I imported it from production server, I don’t see any Specular theme shape nor settings.

      However, if I import without URL change, at least I can see Specular theme feeling (all images, css, js from my local machine as HTML source has https://localhost/…)

      This happens even when I moved to different develop machine.. (Of course, I checked wp-config.php, .htaccess, etc)

      I also tried importing SQL file that didn’t have any changes, and changed from server side using below query but no luck.

      UPDATE wpnp_posts SET post_content = REPLACE(post_content, ‘localhost/mysite’, ‘www. mysite.com’);
      UPDATE wpnp_posts SET guid = REPLACE(guid, ‘localhost/mysite’, ‘www. mysite.com’);
      UPDATE wpnp_postmeta SET meta_value = REPLACE(meta_value, ‘localhost/mysite’, ‘www. mysite.com’);
      UPDATE wpnp_options SET option_value = REPLACE(option_value, ‘localhost/mysite’, ‘www. mysite.com’);

      I found one solution that a bit annoys..

      • import as ‘localhost’ (development setting)
      • re-setup Specular setting (logo,colours, header setting, etc) from WP Admin page
      • Re-select all images manually

      Is there any way to deploy site easily?

      Thanks…

    • 10 years, 5 months ago Ruco
      Keymaster

      Hello,

      I suggest you to use WP migrate DB plugin to replace all the links in DB.
      We use this plugin when we move the site to other host, domain.

      Best regards!

Viewing 1 reply thread

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password