Created
March 13, 2017 03:21
-
-
Save dacodekid/8f7931fb835f6e43a82936cffb862efc to your computer and use it in GitHub Desktop.
Revisions
-
auricapps revised this gist
Nov 21, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ dokku postgres:create <myproj> ``` 3. Create web application & link the database container ``` dokku apps:create <myproj> -
auricapps revised this gist
Nov 21, 2016 . 1 changed file with 48 additions and 48 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,66 +2,66 @@ 1. Verify needed files & settings ``` #PROJ_ROOT/Procfile web: gunicorn <myproj>.wsgi #PROJ_ROOT/requirements.txt dj-database-url==0.4.1 Django==1.10.3 gunicorn==19.6.0 psycopg2==2.6.2 whitenoise==3.2.2 #PROJ_ROOT/runtime.txt python-3.5.2 #PROJ_ROOT/<myproj>/settings.py INSTALLED_APPS = [ ... 'gunicorn', ... ] MIDDLWARE = [ ... 'whitenoise.middleware.WhiteNoiseMiddlware', ... ] DATABASES = {'default': dj_database_url.config(), } ``` 2. Install PostgreSQL plugin, create database container ``` sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres dokku postgres:create <myproj> ``` 3. Create web application & link the databse container ``` dokku apps:create <myproj> dokku postgres:link <myproj> <myproj> ``` 4. Push our application ``` git remote:add dokku dokku@<mydomain.com>:<myproj> git push dokku master ``` 5. HTTPS via Let's Encrypt ``` sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git dokku letsencrypt <myproj> ``` 6. Enjoy! ``` https://<myproj>.<mydomain.com> ``` -
auricapps revised this gist
Nov 21, 2016 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,9 +46,22 @@ dokku apps:create <myproj> dokku postgres:link <myproj> <myproj> ``` 4. Push our application ``` git remote:add dokku dokku@<mydomain.com>:<myproj> git push dokku master ``` 5. HTTPS via Let's Encrypt ``` sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git dokku letsencrypt <myproj> ``` 6. Enjoy! ``` https://<myproj>.<mydomain.com> ``` -
auricapps revised this gist
Nov 21, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ 1. Verify needed files & settings ``` #PROJ_ROOT/Procfile web: gunicorn <myproj>.wsgi -
auricapps renamed this gist
Nov 21, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ 1. Verify needed files & settings ..``` #PROJ_ROOT/Procfile web: gunicorn <myproj>.wsgi -
auricapps created this gist
Nov 21, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ # Steps to set up a Django+PostgreSQL app using Dokku on Python 3.5.2 1. Verify needed files & settings ``` #PROJ_ROOT/Procfile web: gunicorn <myproj>.wsgi #PROJ_ROOT/requirements.txt dj-database-url==0.4.1 Django==1.10.3 gunicorn==19.6.0 psycopg2==2.6.2 whitenoise==3.2.2 #PROJ_ROOT/runtime.txt python-3.5.2 #PROJ_ROOT/<myproj>/settings.py INSTALLED_APPS = [ ... 'gunicorn', ... ] MIDDLWARE = [ ... 'whitenoise.middleware.WhiteNoiseMiddlware', ... ] DATABASES = {'default': dj_database_url.config(), } ``` 2. Install PostgreSQL plugin, create database container ``` sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres dokku postgres:create <myproj> ``` 3. Create web application & link the databse container ``` dokku apps:create <myproj> dokku postgres:link <myproj> <myproj> ``` 4. Push our application and enjoy ``` git remote:add dokku dokku@<mydomain.com>:<myproj> git push dokku master ```