You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.8 KiB

help:
@echo -n
deploy:
-sudo systemctl stop telegram-bot-use-proper-grammar.service
-sudo rm /etc/systemd/system/telegram-bot-use-proper-grammar.service
-sudo install telegram-bot-use-proper-grammar.service /etc/systemd/system
-sudo mkdir -p /var/www/telegram-bot-use-proper-grammar
-sudo rm -rf /var/www/telegram-bot-use-proper-grammar/propergrammar
-sudo rm -rf /var/www/telegram-bot-use-proper-grammar/Makefile
-sudo rm -rf /var/www/telegram-bot-use-proper-grammar/manage.py
-sudo cp -R propergrammar /var/www/telegram-bot-use-proper-grammar/propergrammar
-sudo install manage.py /var/www/telegram-bot-use-proper-grammar
-sudo install Makefile /var/www/telegram-bot-use-proper-grammar
-sudo install requirements.frozen.txt /var/www/telegram-bot-use-proper-grammar
sudo make depends -C /var/www/telegram-bot-use-proper-grammar
sudo make migrate -C /var/www/telegram-bot-use-proper-grammar
cd /var/www/telegram-bot-use-proper-grammar; sudo chown http:http -R .
sudo systemctl daemon-reload
sudo systemctl enable telegram-bot-use-proper-grammar.service
sudo chown http:http -R /var/www/telegram-bot-use-proper-grammar
sudo systemctl restart telegram-bot-use-proper-grammar.service
devmigrate: virtual_env
. virtual_env/bin/activate; python manage.py makemigrations
. virtual_env/bin/activate; python manage.py migrate
migrate: virtual_env
. virtual_env/bin/activate; python manage.py migrate
serve: virtual_env
. virtual_env/bin/activate; python -m propergrammar
depends: virtual_env
. virtual_env/bin/activate; pip install -U -r requirements.frozen.txt
depends-latest: virtual_env
. virtual_env/bin/activate; pip install -U -r requirements.txt
freeze: virtual_env
. virtual_env/bin/activate; python -m pip freeze > requirements.frozen.txt
virtual_env:
python3 -m virtualenv virtual_env
make depends