0

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?

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.