I have a django app hosted in railway, when I push the changes to github railway overrides the media folder as well and I lose all my images, is there a way to exclude the media folder from changing? (I tried gitignore and it didn't work), I'm using whitenoise to handle media and gunicorn to deploy the app.
How to exclude media folder when deploying to railway
242 Views Asked by Hakim At
1
There are 1 best solutions below
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in DEPLOYMENT
- Github Pages Deployment deploys a blank page
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- Next 14 App Router pages from dynamic routes not generating when deployed on vercel but only work on localhost
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- How to Deploy and Manage a Python Application with Systemd
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- Duplicate GET requests - Rails & Heroku
- How to use a proxy to obtain a static IP for my Node.js application?
- Next js app throwing 404 error when deployed to vercel, even though it works fine on local
- How to deploy my shiny application (with multiple files) via Docker
- Deploying telegram bot
- How to deploy angular 17 SSR into IIS
- Route not working on refreshing the page in react deployed application
- Vercel wildcard route's src results in 404 error in Hapi.js backend
- Django deployment with GTK3
Related Questions in DJANGO-MEDIA
- S3BotoStorage and Unit Testing
- django media_root not working
- 404 when requesting url of saved image in media directory using django rest framework
- django - can't see the uploaded media files from apache
- trouble updating media_root in django settings.py
- django thumbnail img url does not correctly rendered in html
- Strange MEDIA_ROOT location
- Attempting to migrate an Django ImageField, but failing to migrate
- How to fix 404 not found when I send POST method
- Django media image displays blank box
- Generating thumbnail manually and uploading it in S3 bucket
- Django profile picture does not upload
- Django media image file is not displaying in template
- Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/media/Profile_pics/itachi.jpg
- Dynamic File Path for image in Django
Related Questions in WHITENOISE
- Matlab code to add white noise to a movie clip
- Getting whitenoise.storage.MissingFileError: The file 'vendor/bootswatch/default/bootstrap.min.css.map' could not be found
- Django static files Dokku
- Static files not loaded when deploy a django web page in vercel(with whitenoise)
- error (400) when putting whitenoise in django cpanel whit debug in false
- whitenoise dosen't seem to work in Django
- Upload images with Django and Whitenoise
- Django shows Internal Server Error in Production while uploading images
- Django Cache Causes Missing Staticfiles on Azure
- How to handle django static files for production
- Django/Wagtail static assets return 404 only when logged in but works logged out
- How to exclude media folder when deploying to railway
- Django ImageField shows wrong url
- Why staticfiles aren't found when DEBUG=False (in production)?
- Azure - Django deployment Static Files
Related Questions in RAILWAY
- I am deploying a django web app with Docker on railway and getting app failed to respond. locally the app works fine and has no errors on logs
- I've deployed a socket.io messaging app using Railway, but I'm getting a 404 error when connecting at the root URL
- How to connect my Railway API on a subdomain in Hostinger
- Images not displaying on my Website and PostgreSQL database that is hosted on Railway in Django app
- Building Issue When Deploying Django Project To Railway
- I have deployed my app on railway, and it sends me worker errors about [CRITICAL] WORKER TIMEOUT
- Error While Deploying a Django App on Railway.app
- http-server and react-router not working correctly in production
- railway.app deployment goes without errors but when accessing the custom url am getting error as Application failed to respond
- How to send a text file to the address https://buscamedsenai-production.up.railway.app/ on the Railway server (https://railway.app/)?
- Unable to connect railway.app postgres to nestjs application
- PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.11, library: 1.3) when deploying app to Railway
- (535, b'5.7.3 Authentication unsuccessful) in railway, but working on localhost
- Railway app not able to install when deploying NestJS application
- Why I can't connect two containers between each other in railway.app?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I contacted their support and they said the storage for Railway is ephemeral and the data on disk is cleared on each deployment, so we have to host our files elsewhere (I will try AWS S3 Buckets and edit this answer later)