docker ps
docker-compose exec web python manage.py makemigrations
----------------------------------------
https://dokku.com/docs/getting-started/installation/

wget https://raw.githubusercontent.com/dokku/dokku/v0.30.7/bootstrap.sh
sudo DOKKU_TAG=v0.30.7 bash bootstrap.sh

echo cat ~/.ssh/authorized_keys | dokku ssh-keys:add admin

echo '<authorized_keys contents here>' | dokku ssh-keys:add admin

# server ip
dokku domains:set-global 45.79.34.63###c_name

sudo dokku apps:create werkout
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git
sudo dokku postgres:create werkout
sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
sudo dokku redis:create werkout

sudo dokku postgres:link werkout werkout
sudo dokku redis:link werkout werkout

sudo dokku config:set --no-restart werkout SECRET_KEY=wz%C*@^$QLaFDc$u*wKZK9bV3CBMt7cj3wk2y^0vdu@2*pz7yco+p=7@sa%

#if dev env
sudo dokku config:set --no-restart werkout IS_DEV=True

#push code
# add werkoutDev and werkout to /etc/hosts
'''
Host brodkast
	HostName 45.33.120.174
	User root
	PreferredAuthentications publickey
    IdentityFile /Users/treyt/.ssh/bk_linode
	IdentitiesOnly yes
	AddKeysToAgent yes
# ----------------------------
Host brodkastDev
        HostName 45.79.26.38
        User root
        PreferredAuthentications publickey
        IdentityFile /Users/treyt/.ssh/bk_linode
        IdentitiesOnly yes
        AddKeysToAgent yes
'''
#add remote
dokku@werkoutdev:werkout

git push dokku@werkoutDev:werkout dokku
git push dokku@werkout:werkout master

dokku run werkout python manage.py createsuperuser

#check if debug
dokku run werkout python manage.py shell
from django.conf import settings
print(settings.DEBUG)
exit()
----------------------------------------
sudo dokku domains:add werkout dev.werkout.io
sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
sudo dokku config:set --no-restart --global DOKKU_LETSENCRYPT_EMAIL=werkoutdev@treymail.com
sudo dokku letsencrypt:enable werkout
sudo dokku letsencrypt:cron-job --add
sudo dokku plugin:install https://github.com/dokku/dokku-redirect.git

----------------------------------------
45.79.34.63
server root pass - bohxep-pymde8-xakmyG
----

