Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Using static files in Heroku

$
0
0

Hi @dan_baker ,

I need your help on this issue, I take this paragraph form your detalied explanation about deploying to Heroku:

  1. Use the Whitenoise library. Quick and easy. A few lines of code and you’re serving files in the way you would imagine.

I have a problem to reproduce audio in Heroku, I run an app that converts text into mp3 file, but the issue is to get a way to save the file and then reproduce it in Heroku app.

I can reproduce audio that is stored in the assets folder and also audios from others url location, but can’t find a way to save and read it dynamically.

If I understand correctly you suggest using Whitenoise to solve this issue.

I followed your indication but can’t understand how to save the file into the static/ folder.

Could you provide an example ?

Thanks in advance :grinning:

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images