# Deploying franklin site on my web server

**URL:** <https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 14, 2023, 1:01pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622 "2023-07-14T13:01:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [July 14, 2023, 1:01pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/1 "2023-07-14T13:01:55Z")

</div>

I’m trying to deploy a little website I generated with `Franklin.jl`. It looks fine on my local computer. When deployed at [Gideon Simpson](https://www.math.drexel.edu/~simpson/), the menus don’t seem to be rendering properly.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [July 14, 2023, 1:38pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/2 "2023-07-14T13:38:25Z")

</div>

Just a guess - perhaps that tilde `~` doesn’t work?

```html
<link rel="stylesheet" href="/~simpson/css/franklin.css">

```

---

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [July 14, 2023, 2:20pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/3 "2023-07-14T14:20:45Z")

</div>

Our personal websites are all hosted at `www.math.drexel.edu/~USERNAME/`. I got that `~` in there by, following the instructions, using:

```julia
optimize(prepath="/~simpson/", minify=false).

```

Now, this might be part of my problem, but if I try to navigate to the style sheets on the browser, I get a

```julia
Forbidden

You don't have permission to access this resource.

```

error. So perhaps the problem are the permissions? What should they be? Is there a way to have Franklin handle the permissions for me?

---

<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:** [July 14, 2023, 2:41pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/4 "2023-07-14T14:41:03Z")

</div>

> Is there a way to have Franklin handle the permissions for me?

no, these are rules set by the uni IT admin.

Could you maybe try specifying the `prepath` as the full base URL:

```julia
prepath="https://www.math.drexel.edu/~simpson/"

```

and report if it helps?

---

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [July 14, 2023, 2:48pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/5 "2023-07-14T14:48:36Z")

</div>

Nope. And now it can’t find linked pages on there.

---

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [July 14, 2023, 2:50pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/6 "2023-07-14T14:50:28Z")

</div>

Doing:

```julia
optimize(prepath="~simpson/", minify=false)

```

got the CSS files to work, but now i get permissions errors on the linked pages at the top.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [July 14, 2023, 2:50pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/7 "2023-07-14T14:50:33Z")

</div>

Looks OK to me…

 ![Screenshot 2023-07-14 at 15.50.17](https://global.discourse-cdn.com/julialang/original/3X/d/5/d58c3f509982b5b8f5eda5ea92cc23177c4b0b7f.png)

---

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [July 14, 2023, 2:51pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/8 "2023-07-14T14:51:01Z")

</div>

Yea, see my post just before yours. But try clicking `Publications` or `Teaching`

---

<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:** [July 14, 2023, 3:05pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622/9 "2023-07-14T15:05:28Z")

</div>

nice one, I was indeed wondering whether it was the forward slash that caused troubles.

great that you fixed this 👏 and good luck with Franklin 🙂
