Answers.Body: <p>It probably depends most on your hosting but following these instructions are probably your best bet: <a href="http://buildwithcraft.com/docs/installing" rel="nofollow">http://buildwithcraft.com/docs/installing</a> The only exception being instead of "installing" you'd move your files up and import your database.</p>
  
  <p>If you are using github, it's as easy as "pulling" your code to your production server and importing the database into production database as well (local mysql, cloud db etc.)</p>
  
  <p>You'll probably be best off looking at <a href="http://buildwithcraft.com/docs/multi-environment-configs" rel="nofollow">http://buildwithcraft.com/docs/multi-environment-configs</a> so you can create settings for both your local environment and production.</p>
  
  <p><strong>Here's an example of a sample craft database file:</strong> <a href="https://gist.github.com/mccombs/5e17c84743a25dafddb9" rel="nofollow">https://gist.github.com/mccombs/5e17c84743a25dafddb9</a></p>
  
  <p><strong>Here's an example of a sample craft general config file:</strong>
  <a href="https://gist.github.com/mccombs/b6a161cabc064d1f51b3" rel="nofollow">https://gist.github.com/mccombs/b6a161cabc064d1f51b3</a></p>
  
  <p>Hope this helps!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-16T18:58:07.277Z
Answers.Text: Thanks for yor response. So i have to move files, create and import database and edit config file to connect to db and that´s it? I think that i have to re-install craft in the server to update some paths and settings ( like Modx for example ).
Answers.UserDisplayName: Sebastián.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-17T01:34:01.107Z
Answers.Text: Pretty much. I edit my config and db files so I can run the same codebase on my local environment (MAMP) and production. Inside of that you can set your site URLs to be dynamic. I added two gists to my answer that shows how you can do this.
Answers.UserDisplayName: Adam McCombs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-15T21:11:50.093Z
Answers.LastActivityDate: 2015-05-17T01:37:45.570Z
Answers.LastEditDate: 2015-05-17T01:37:45.570Z
Answers.UserDisplayName: Adam McCombs
Body: <p>is there any resource that list all the steps to publish a local finished website to the final server?</p>
  
  <p>Thanks!</p>
  
Tags: <server>
Title: Steps to publish a craft website from local to server
ThreadText: # Steps to publish a craft website from local to server
  
  (Asked by: username_0 on 2015-05-15)
  
  is there any resource that list all the steps to publish a local finished website to the final server?
  
  Thanks!
  
  **Tags:** server
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-15. Score: 5 | Accepted answer
  
  It probably depends most on your hosting but following these instructions are probably your best bet: <http://buildwithcraft.com/docs/installing> The only exception being instead of "installing" you'd move your files up and import your database.
  
  If you are using github, it's as easy as "pulling" your code to your production server and importing the database into production database as well (local mysql, cloud db etc.)
  
  You'll probably be best off looking at <http://buildwithcraft.com/docs/multi-environment-configs> so you can create settings for both your local environment and production.
  
  **Here's an example of a sample craft database file:** <https://gist.github.com/username_1/5e17c84743a25dafddb9>
  
  **Here's an example of a sample craft general config file:**
  <https://gist.github.com/username_1/b6a161cabc064d1f51b3>
  
  Hope this helps!
  
  > **Comments:**
  > **username_0**: Thanks for yor response. So i have to move files, create and import database and edit config file to connect to db and that´s it? I think that i have to re-install craft in the server to update some paths and settings ( like Modx for example ).  
  > **username_1**: Pretty much. I edit my config and db files so I can run the same codebase on my local environment (MAMP) and production. Inside of that you can set your site URLs to be dynamic. I added two gists to my answer that shows how you can do this.  
  
  ---
  
  