Browse Source

Add info about data persistence

pull/2/merge
Rodolfo Carvalho 10 years ago
parent
commit
bbe0ebfc43
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      README.md

+ 7
- 1
README.md View File

@ -81,4 +81,10 @@ requirements.txt - list of dependencies
## Data persistence ## Data persistence
[TODO]
You can deploy this application without a configured database in your OpenShift project, in which case Django will use a temporary SQLite database that will live inside your application's container, and persist only until you redeploy your application.
After each deploy you get a fresh, empty, SQLite database. That is fine for a first contact with OpenShift and perhaps Django, but sooner or later you will want to persist your data across deployments.
To do that, you should add a properly configured database server or ask your OpenShift administrator to add one for you. Then use `osc env` to update the `DATABASE_*` environment variables in your DeploymentConfig to match your database settings.
Redeploy your application to have your changes applied, and open the welcome page again to make sure your application is successfully connected to the database server.

Loading…
Cancel
Save