title: R Shiny on Shiny server - how to access the app?
body: <p>I have Shiny Server installed and I can use the sample apps (i.e. <a href="http://serverip:3838/hello/" rel="nofollow noreferrer">http://serverip:3838/hello/</a>).</p>
  
  <p>But when I visit <a href="http://serverip:3838/myapp/" rel="nofollow noreferrer">http://serverip:3838/myapp/</a> to use myapp, it's not working (loading till it stops). </p>
  
  <p>Am I missing something in the code or in the way this should be done? </p>
  
  <p>-- (running locally <code>app.R</code> from RStudio, works fine)</p>
  
  <p>Info about the app:</p>
  
  <ul>
  <li><p>Location: /srv/shiny-server/myapp</p></li>
  <li><p>Filename: app.r</p></li>
  <li><p>File structure:</p>
  
  <p><strong>-- load libraries</strong></p>
  
  <p>library(shiny)</p>
  
  <p>...</p>
  
  <p><strong>-- Connection and queries</strong></p>
  
  <pre><code>con &lt;- dbConnect(MySQL(),
                   user = '#',
                   password = '#',
                   host = '#',
                   dbname='#')
  
  tickets&lt;-dbGetQuery(con, "Select * from table")
  issues_speed_unique&lt;-unique(na.omit(dbGetQuery(con,"Select * from table2")))
  dbDisconnect (con) 
  
  some aggregations....
  </code></pre>
  
  <p><strong>-- Server code</strong></p>
  
  <pre><code>shinyServer(
    function(input,output){
       ...
  </code></pre>
  
  <p><strong>-- ui code</strong></p>
  
  <pre><code>shinyUI(fluidPage(
       ...
  
  shinyApp(ui = ui, server = server)
  </code></pre></li>
  </ul>