I have a free dyno instance running a simple worker that creates an RSS file and upload it to PythonAnywhere (using it just like a web server for this static `rss.xml` file).

I am trying to move from PythonAnywhere to use a web `heroku-buildpack-static` on the same worker dyno but I cannot make it work. Looks like worker and web run in different folders / environments and I cannot find where it is located.

```
worker: python main.py
web: bin/boot

```

The `main.py` script writes the file to the current folder and uploads it with success to PythonAnywhere, but I cannot see where this file is written on Heroku. I tried to create a folder `/app/web` and modify this on `main.py` to write to it but also I cannot see the file created / updated, I used the Heroku console to check this. I think a worker uses a different home or instance to run but I am not sure what is this structure located. I also created a `.profile` with the following command without success:

```
chmod -R 777 /app/web

```

The app also contains a `static.json` file with the following to point the correct folder and avoid cache

```
{
  "root": "/app/web/",
  "headers": {
    "/": {
      "Cache-Control": "no-store, no-cache"
    }
  }
}

```