# Deploying a website with Franklin

**URL:** <https://discourse.julialang.org/t/deploying-a-website-with-franklin/38930>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 7, 2020, 4:15am UTC](https://discourse.julialang.org/t/deploying-a-website-with-franklin/38930 "2020-05-07T04:15:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Post date:** [May 7, 2020, 5:54am UTC](https://discourse.julialang.org/t/deploying-a-website-with-franklin/38930/6 "2020-05-07T05:54:20Z")

</div>

Hello, apologies for the inconvenience.

So if you would like your home page to be deployed at [crucialflow.com/site/](http://crucialflow.com/site/) then you need to set the `prepath` to `site`, I think you figured that one out.

If you’re using your own server, your server needs to only see the _content_ of ` __site`. This is what happens on github for instance where the content of `__ site` is built then copied on a branch and the branch is the one that’s used for displaying the site.

I’m not sure what your setup is (for instance if you use Netlify then it’s easier) maybe one thing you could do is reproduce the setup from github so:

- do stuff locally
- when happy push the content of `__site` (only) to a `website` branch
- have your webserver based on that `website` branch

for the part to push only the content of a folder to a branch, I think [this page](https://sangsoonam.github.io/2019/02/08/using-git-worktree-to-deploy-github-pages.html) explains how to do it in Git.

I hope this helps a bit

PS: GitLab is pretty good as well to help with this kind of gymnastics while keeping your repo private. I think you could have the same steps as suggested above but done on GitLab automatically whenever you push. (Though it would require setting up a key pair I would imagine so that you can copy stuff to your webserver)

If you manage to get something to work, kindly open an issue on franklindocs explaining what you did & I’ll add it to the docs, it might help others with similar setup 🙂

---

_[View the full topic](https://discourse.julialang.org/t/deploying-a-website-with-franklin/38930)._
