Skip to content

Commit 1164d30

Browse files
Moved old DB migration out of main setup in README
Fixes #86. Also updated the Travis badge to point to the right branch.
1 parent 81fd1c9 commit 1164d30

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Conditional
22
===========
33

4-
[![Build Status](https://travis-ci.org/ComputerScienceHouse/conditional.svg?branch=travis-ci)](https://travis-ci.org/ComputerScienceHouse/conditional)
4+
[![Build Status](https://travis-ci.org/ComputerScienceHouse/conditional.svg)](https://travis-ci.org/ComputerScienceHouse/conditional)
55

66
A comprehensive membership evaluations solution for Computer Science House.
77

@@ -14,6 +14,7 @@ To run the application, you must have the latest version of [Python 3](https://w
1414
virtualenv .conditionalenv -p `which python3`
1515
source .conditionalenv/bin/activate
1616
pip install -r requirements.txt
17+
export FLASK_APP=app.py
1718
```
1819

1920
In addition, you must have Node, NPM, and Gulp CLI installed to properly execute the asset pipeline. If you don't have Node installed, we recommending installing with [NVM](https://github.com/creationix/nvm):
@@ -32,11 +33,6 @@ npm install
3233

3334
You must create `config.py` in the top-level directory with the appropriate credentials for the application to run. See `config.sample.py` for an example. To perform the initial database migration, run the following commands before starting the application:
3435

35-
```
36-
pip install pymysql
37-
flask zoo
38-
```
39-
4036
Once you have all of the dependencies installed, simply run:
4137

4238
```
@@ -62,3 +58,12 @@ flask db migrate
6258
The new migration script in `migrations/versions` should be verified before being committed, as Alembic may not detect every change you make to the models.
6359

6460
For more information, refer to the [Flask-Migrate](https://flask-migrate.readthedocs.io/) documentation.
61+
62+
### Old Evals DB Migration
63+
64+
Conditional includes a utility to facilitate data migrations from the old Evals DB. This isn't necessary to run Conditional. To perform this migration, run the following commands before starting the application:
65+
66+
```
67+
pip install pymysql
68+
flask zoo
69+
```

0 commit comments

Comments
 (0)