title: Where to place custom css/js in Shiny App?
body: <p>I have a Shiny app that I've been running locally which has custom css. I've placed this in the <code>www</code> dir together with the <code>index.html</code> file and this has been working smoothly. Now I've been deploying this app to a Shiny-server, and everything worked except that my custom style sheets were not loaded.</p>
  
  <p>In the following guide: <a href="http://rstudio.github.io/shiny-server/os/latest/#host-a-directory-of-applications" rel="nofollow">http://rstudio.github.io/shiny-server/os/latest/#host-a-directory-of-applications</a> it states that static assets should be placed in a common directory for all Shiny apps, like this:</p>
  
  <pre><code>+---/srv/shiny-server
  |   +---shinyApp1
  |       +---server.R
  |       +---ui.R
  |   +---shinyApp2
  |       +---server.R
  |       +---ui.R
  |   +---assets
  |       +---style.css
  |       +---script.js
  </code></pre>
  
  <p>And if I do that and link to the css like this:</p>
  
  <pre><code>&lt;link href="../assets/css/full.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p>It works. However I would like to know if there is any way that I can store the assets for each application within that apps folder structure, optimally getting something like this:</p>
  
  <pre><code>+---/srv/shiny-server
  |   +---shinyApp1
  |       +---server.R
  |       +---www
  |            |---index.html
  |            |---css
  |                 |---my_custom.css
  </code></pre>
  
  <p>and referencing the css in the the <code>index.html</code> like this:</p>
  
  <pre><code>&lt;link href="css/full.css" rel="stylesheet"&gt;
  </code></pre>
  
  <p>However if I try to reference the css in that way it cannot be loaded. Is there any configuration that I can fix that will make this work? Or am I stuck with copying the assets of each app into the <code>assets</code> directory?</p>