Revision 3d9f561d README.deploy
b/README.deploy | ||
---|---|---|
301 | 301 |
|
302 | 302 |
7. Initialization of Synnefo DB: |
303 | 303 |
You need to initialize the Synnefo DB and load fixtures |
304 |
db/fixtures/{flavors,images}.json, which make the API usable by end users by |
|
305 |
defining a sample set of hardware configurations (flavors) and OS images. |
|
304 |
db/fixtures/{users,flavors,images}.json, which make the API usable by end |
|
305 |
users by defining a sample set of users, hardware configurations (flavors) |
|
306 |
and OS images. |
|
306 | 307 |
|
307 |
IMPORTANT: Be sure to modify db/fixtures/initial_data.json and select
|
|
308 |
IMPORTANT: Be sure to modify db/fixtures/users.json and select
|
|
308 | 309 |
a unique token for each of the initial and any other users defined in this |
309 | 310 |
file. DO NOT LEAVE THE SAMPLE AUTHENTICATION TOKENS enabled in deployed |
310 | 311 |
configurations. |
311 | 312 |
|
312 | 313 |
$ ./bin/python manage.py syncdb |
313 | 314 |
$ ./bin/python manage.py migrate db |
315 |
$ ./bin/python manage.py loaddata db/fixtures/users.json |
|
314 | 316 |
$ ./bin/python manage.py loaddata db/fixtures/flavors.json |
315 | 317 |
$ ./bin/python manage.py loaddata db/fixtures/images.json |
316 | 318 |
|
Also available in: Unified diff