Kaynağa Gözat

Improved sandbox creation using makefile

Remove old recreatedb script in favour of using the makefile.
master
David Winterbottom 13 yıl önce
ebeveyn
işleme
0d6f9be8e6
3 değiştirilmiş dosya ile 2561 ekleme ve 2 silme
  1. 2
    1
      Makefile
  2. 2558
    0
      sites/_fixtures/auth.json
  3. 1
    1
      sites/sandbox/recreate_db.sh

+ 2
- 1
Makefile Dosyayı Görüntüle

@@ -6,13 +6,14 @@ install:
6 6
 	pip install -r requirements.txt
7 7
 
8 8
 sandbox: install
9
+	[ -f sites/sandbox/db.sqlite ] && rm sites/sandbox/db.sqlite
9 10
 	# Create database
10 11
 	sites/sandbox/manage.py syncdb --noinput
11 12
 	sites/sandbox/manage.py migrate
12 13
 	# Import some fixtures
13 14
 	sites/sandbox/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
14 15
 	sites/sandbox/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
15
-	sites/sandbox/manage.py loaddata countries.json sites/_fixtures/pages.json
16
+	sites/sandbox/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json
16 17
 	sites/sandbox/manage.py rebuild_index --noinput
17 18
 
18 19
 ci:

+ 2558
- 0
sites/_fixtures/auth.json
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 1
- 1
sites/sandbox/recreate_db.sh Dosyayı Görüntüle

@@ -7,7 +7,7 @@ rm $DATABASE
7 7
 ./manage.py migrate
8 8
 
9 9
 echo "Loading fixtures"
10
-./manage.py loaddata countries.json
10
+./manage.py loaddata countries.json ../_fixtures/pages.json
11 11
 
12 12
 echo "Importing products"
13 13
 ./manage.py oscar_import_catalogue ../_fixtures/books-catalogue.csv

Loading…
İptal
Kaydet