Markus Proctor
Markus Proctor

Reputation: 435

Prevent Override SQLite3 Database When Deploying to AWS

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!

Upvotes: 3

Views: 443

Answers (1)

Ekin Ertaç
Ekin Ertaç

Reputation: 335

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

Upvotes: 2

Related Questions