Web server and web version
docker-compose -f local.yml build
docker-compose -f local.yml up
docker-compose -f local.yml exex web /bin/sh
Проект деплоится на dev.easysport.online VPS-хостинг на smartape.ru
IP-адрес: 188.127.231.216
Пользователь: root
Пароль: ***********
- Create non-root user:
adduser easysport (pass:*******)
- Give root priveleges
usermod -aG sudo easysport
- Login as user @easysport
su - easysport
TODO: add nopassword authentication
sudo usermod -a -G docker $USER
then logout and login
sudo chmod 777 /opt
- Make fixtures
python manage.py dumpdata users -o fixtures/users.json
- Load locally
scp -r root@easysport.online:/opt/sportcourts2/fixtures ~/Dev
- Loaddata
Zero - new? First - delete useractivation from users and load users Second - places Third - courts Fourth - games
Migrate old usergameaction.action to usergameaction.status
python manage.py dumpdata --exclude=auth --exclude=contenttypes --exclude=sessions --exclude=notifications --exclude=admin -o fixtures/all.json