This commit is contained in:
Bernhard Posselt 2016-06-05 23:13:25 +02:00
Родитель 00a14321ea
Коммит 5a9f50d57b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -14,9 +14,9 @@ test: lint
# Only for local setup, do not use in production
dev-setup:
pyvenv venv
echo -e "DEBUG = True\nSECRET_KEY = '$(random)'" > $(CURDIR)/nextcloudappstore/local_settings.py
$(pip) install -r $(CURDIR)/requirements.txt
$(pip) install -r $(CURDIR)/dev-requirements.txt
@echo -e "DEBUG = True\nSECRET_KEY = '$(random)'" > $(CURDIR)/nextcloudappstore/local_settings.py
$(manage) migrate
$(manage) loaddata $(CURDIR)/nextcloudappstore/**/fixtures/*.yaml
@echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')" | $(manage) shell

Просмотреть файл

@ -9,11 +9,11 @@
## Development Installation
If you want to get a quick running development setup, you can use a predefined make command to automatically set up a virtual environment and install the web app with sqlite as database. **Do not set up production using this command!**
First make sure that you've got pyvenv installed. You can check for this by running:
First make sure that you've got **venv** installed. You can check for it by running:
python3 -m venv -h
If you got a **No module named venv** error, you need to install it first. Some distributions like Ubuntu require you to install it separately, e.g.:
If you get a **No module named venv** error, you need to install it first. Some distributions like Ubuntu require you to install it separately, e.g.:
sudo apt-get install python3-venv