You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| $ mkdir django && cd django | |
| $ mkdir django-env && cd django-env | |
| $ python3.10 -m venv env | |
| $ source env/bin/activate | |
| (env)$ pip install django==4.0 | |
| (env)$ django-admin.py startproject hello_django . | |
| (env)$ python manage.py runserver |
| #!/bin/bash | |
| # удаление завершенных контейнеров: | |
| docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
| # удаление неиспользуемых контейнеров: | |
| yes | docker container prune | |
| # удаление не используемых образов: | |
| yes | docker image prune | |
| # удаление не используемых томов: | |
| yes | docker volume prune |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| import config | |
| import telebot | |
| from telebot import types # кнопки | |
| from string import Template | |
| bot = telebot.TeleBot(config.token) | |
| user_dict = {} | |
| class User: |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/YOUR_USERNAME/Sites; | |
| access_log /Library/Logs/default.access.log main; | |
| location / { | |
| include /usr/local/etc/nginx/conf.d/php-fpm; | |
| } |