Answers.Body: <p>Everything looks good to go more or less, but #4 can be improved upon by creating a <a href="https://craftcms.com/docs/multi-environment-configs" rel="noreferrer">multi-environment config</a> file.  This way, instead of having to change your site urls and base path (for assets) in the event you want to overwrite your local db with your live site db to sync it up, you just use a variable in the CMS like <code>{siteUrl}</code> or <code>{basePath}</code> that's set in your config file.</p>
  
  <p><strong>nystudio107</strong> has <a href="https://nystudio107.com/blog/multi-environment-config-for-craft-cms" rel="noreferrer">a great article</a> walking you through setting up a great multi-environment.</p>
  
  <p>If you're feeling even more adventurous, I also highly suggest his <a href="https://nystudio107.com/blog/database-asset-syncing-between-environments-in-craft-cms" rel="noreferrer">Database &amp; Asset Syncing</a> article that allows you to run a command from your terminal to instantly pull down and import a copy of your database/assets from any environment you want into your local.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-18T13:06:51.380Z
Answers.Text: No problem! Welcome to Craft! :)
Answers.UserDisplayName: Ryan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-18T13:02:01.293Z
Answers.LastActivityDate: 2017-09-18T13:02:01.293Z
Answers.UserDisplayName: Ryan
Body: <p>I'm a long time WordPress developer who's moved over to Craft CMS (loving it).</p>
  
  <p>When moving over WordPress sites from MAMP to a live production server, I follow this process:</p>
  
  <ol>
  <li>Upload all WP files to live server</li>
  <li>Export database via phpMyAdmin</li>
  <li>Create database on live server and import database dump</li>
  <li>User <a href="https://interconnectit.com/products/search-and-replace-for-wordpress-databases/" rel="nofollow noreferrer">search and replace tool</a> to change URLs</li>
  <li>Flush permalinks via WP admin</li>
  </ol>
  
  <p>For Craft, I've done the following:</p>
  
  <ol>
  <li>Upload all Craft files to live server</li>
  <li>Export database from CP in Craft</li>
  <li>Create database on live server and import Craft DB zip</li>
  <li>Via live Craft CP, change Site URL and Asset URL</li>
  </ol>
  
  <p>Everything is working perfectly, but I just want to check I hadn't missed anything here? Not having to do a search and replace is awesome.</p>
  
Tags: <migration>
Title: Moving from staging (MAMP) to live production server
ThreadText: # Moving from staging (MAMP) to live production server
  
  (Asked by: username_0 on 2017-09-18)
  
  I'm a long time WordPress developer who's moved over to Craft CMS (loving it).
  
  When moving over WordPress sites from MAMP to a live production server, I follow this process:
  
  1. Upload all WP files to live server
  2. Export database via phpMyAdmin
  3. Create database on live server and import database dump
  4. User [search and replace tool](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/) to change URLs
  5. Flush permalinks via WP admin
  
  For Craft, I've done the following:
  
  1. Upload all Craft files to live server
  2. Export database from CP in Craft
  3. Create database on live server and import Craft DB zip
  4. Via live Craft CP, change Site URL and Asset URL
  
  Everything is working perfectly, but I just want to check I hadn't missed anything here? Not having to do a search and replace is awesome.
  
  **Tags:** migration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-18. Score: 6 | Accepted answer
  
  Everything looks good to go more or less, but #4 can be improved upon by creating a [multi-environment config](https://craftcms.com/docs/multi-environment-configs) file. This way, instead of having to change your site urls and base path (for assets) in the event you want to overwrite your local db with your live site db to sync it up, you just use a variable in the CMS like `{siteUrl}` or `{basePath}` that's set in your config file.
  
  **nystudio107** has [a great article](https://nystudio107.com/blog/multi-environment-config-for-craft-cms) walking you through setting up a great multi-environment.
  
  If you're feeling even more adventurous, I also highly suggest his [Database & Asset Syncing](https://nystudio107.com/blog/database-asset-syncing-between-environments-in-craft-cms) article that allows you to run a command from your terminal to instantly pull down and import a copy of your database/assets from any environment you want into your local.
  
  > **Comments:**
  > **username_1**: No problem! Welcome to Craft! :)  
  
  ---
  
  