<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>

CC BY-SA 3.0
2015-05-16T18:58:07.277Z
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 ).
Sebastián.
CC BY-SA 3.0
2015-05-17T01:34:01.107Z
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.
Adam McCombs
CC BY-SA 3.0
2015-05-15T21:11:50.093Z
2015-05-17T01:37:45.570Z
2015-05-17T01:37:45.570Z
Adam McCombs
<p>is there any resource that list all the steps to publish a local finished website to the final server?</p>

<p>Thanks!</p>

<server>
Steps to publish a craft website from local to server
# 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/mccombs/5e17c84743a25dafddb9>

**Here's an example of a sample craft general config file:**
<https://gist.github.com/mccombs/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.  

---

