Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Override SQLite3 Database When Deploying to AWS

Tags:

sqlite

django

I'm super new to Django and currently working on an application that makes use of the awesome SQLite3 database. Only problem is that every time I deploy to AWS, the database information gets completely wiped. This is horrible for my blog because everyone's comments, likes, etc get deleted. :( How can I maintain the data after deployments? Or what can I use instead of SQLite3 without rewriting too much code?

Thanks!

like image 211
Markus Proctor Avatar asked Apr 20 '26 01:04

Markus Proctor


1 Answers

you need to create a file called .ebignore. this file works like a .gitignore file and you need to write filenames you didn't want to deploy by per line.

EB CLI Documentation

like image 117
Ekin Ertaç Avatar answered Apr 21 '26 15:04

Ekin Ertaç



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!