App Deployment Issue: Application Failed to Start (exited with code 1)

I deployed my app successfully but my app does not show up on the webpage. Rather, this error message is displayed:

# An error has occurred

The application failed to start (exited with code 1).

`Attaching package: ‘rsconnect’

The following object is masked from ‘package:shiny’:

** serverInfo**

Error in value[3L] : **
** /filepathname/ does not exist

Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted`

I am wondering if this has to do with where I am putting the following code in the files I upload with the app:

rsconnect::setAccountInfo(name='',
** token='',**
** secret='')**

library(rsconnect)
rsconnect::deployApp("")

Currently the above code is in my app.r file. Should it be in my workflow.r script? Or in a separate script altogether?

Thanks so much for your help!

Hey, All -

I got it to work! I moved:

rsconnect::setAccountInfo(name='',
** token='',**
** secret='')**

library(rsconnect)
rsconnect::deployApp("")

to my workflow.r script and it fixed the issue.

Hope this helps someone!