Bigair
Bigair

Reputation: 1592

How not to deploy under git controled db.sqlite3 file

In my django project, db.sqlite3 is under git control(I chose to do so). However when deploying the project to AWS server(using elastic beanstalk), I would like not to deploy db.sqlite3 file.

Database setting is configured inside settings module so even db.sqlite3 file is deployed to the server, the project won't reference db.sqlite3 file. I will probably work fine but I do not want to deploy something unnecessary(db.sqlite3) to be deployed to the server.

How can I not to deploy db.sqlite3 under git control?

Upvotes: 0

Views: 78

Answers (1)

Gasanov
Gasanov

Reputation: 3399

You are looking for .ebignore file, which has similar structure as .gitignore.

Be sure to add whole .gitignore content, as well as db.sqlite3.

More info in aws docs.

Upvotes: 3

Related Questions