mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 13:14:28 +03:00
Fix #313, which is removing dokku
This commit is contained in:
parent
bbc1d337f2
commit
99a30d08dc
|
@ -2,6 +2,10 @@
|
||||||
All enhancements and patches to cookiecutter-django will be documented in this file.
|
All enhancements and patches to cookiecutter-django will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## [2015-08-31]
|
||||||
|
###
|
||||||
|
- Dokku in favor of docker-compose and other modern Django tools (@pydanny) (@pydanny)
|
||||||
|
|
||||||
## [2015-08-30]
|
## [2015-08-30]
|
||||||
### Changed
|
### Changed
|
||||||
- Moved from Bootstrap 3 to Bootstrap 4 (@audreyr)
|
- Moved from Bootstrap 3 to Bootstrap 4 (@audreyr)
|
||||||
|
|
|
@ -37,7 +37,6 @@ Features
|
||||||
* Integration with Sentry_ for error logging (optional)
|
* Integration with Sentry_ for error logging (optional)
|
||||||
* Docker support using docker-compose_ for dev and prod
|
* Docker support using docker-compose_ for dev and prod
|
||||||
* Procfile_ for deploying to Heroku
|
* Procfile_ for deploying to Heroku
|
||||||
* Works with Dokku
|
|
||||||
|
|
||||||
.. _alpha: http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/
|
.. _alpha: http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/
|
||||||
.. _Hitch: https://github.com/hitchtest/hitchtest
|
.. _Hitch: https://github.com/hitchtest/hitchtest
|
||||||
|
|
|
@ -200,7 +200,7 @@ The testing framework runs Django, Celery (if enabled), Postgres, HitchSMTP (a m
|
||||||
Deployment
|
Deployment
|
||||||
----------
|
----------
|
||||||
|
|
||||||
We providing tools and instructions for deploying using Docker and Heroku. Dokku is also an option, but doesn't have the same amount of support.
|
We providing tools and instructions for deploying using Docker and Heroku.
|
||||||
|
|
||||||
Heroku
|
Heroku
|
||||||
^^^^^^
|
^^^^^^
|
||||||
|
@ -344,12 +344,3 @@ To get the status, run::
|
||||||
If you have errors, you can always check your stack with `docker-compose`. Switch to your projects root directory and run::
|
If you have errors, you can always check your stack with `docker-compose`. Switch to your projects root directory and run::
|
||||||
|
|
||||||
docker-compose ps
|
docker-compose ps
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dokku
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
`Instructions for deploying with Dokku`_ can be found in the docs.
|
|
||||||
|
|
||||||
.. _`Instructions for deploying with Dokku`: https://github.com/pydanny/cookiecutter-django/blob/master/%7B%7Bcookiecutter.repo_name%7D%7D/docs/deploy.rst
|
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
Dokku
|
|
||||||
=====
|
|
||||||
|
|
||||||
You need to make sure you have a server running Dokku with at least 1GB of RAM. Backing services are
|
|
||||||
added just like in Heroku however you must ensure you have the relevant Dokku plugins installed.
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
cd /var/lib/dokku/plugins
|
|
||||||
git clone https://github.com/rlaneve/dokku-link.git link
|
|
||||||
git clone https://github.com/luxifer/dokku-redis-plugin redis
|
|
||||||
git clone https://github.com/jezdez/dokku-postgres-plugin postgres
|
|
||||||
dokku plugins-install
|
|
||||||
|
|
||||||
You can specify the buildpack you wish to use by creating a file name .env containing the following.
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
export BUILDPACK_URL=<repository>
|
|
||||||
|
|
||||||
You can then deploy by running the following commands.
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
git remote add dokku dokku@yourservername.com:{{cookiecutter.repo_name}}
|
|
||||||
git push dokku master
|
|
||||||
ssh -t dokku@yourservername.com dokku redis:create {{cookiecutter.repo_name}}-redis
|
|
||||||
ssh -t dokku@yourservername.com dokku redis:link {{cookiecutter.repo_name}}-redis {{cookiecutter.repo_name}}
|
|
||||||
ssh -t dokku@yourservername.com dokku postgres:create {{cookiecutter.repo_name}}-postgres
|
|
||||||
ssh -t dokku@yourservername.com dokku postgres:link {{cookiecutter.repo_name}}-postgres {{cookiecutter.repo_name}}
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_SECRET_KEY=RANDOM_SECRET_KEY_HERE
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_SETTINGS_MODULE='config.settings.production'
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_AWS_ACCESS_KEY_ID=YOUR_AWS_ID_HERE
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET_ACCESS_KEY_HERE
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_AWS_STORAGE_BUCKET_NAME=YOUR_AWS_S3_BUCKET_NAME_HERE
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_MAILGUN_API_KEY=YOUR_MAILGUN_API_KEY
|
|
||||||
ssh -t dokku@yourservername.com dokku config:set {{cookiecutter.repo_name}} DJANGO_MAILGUN_SERVER_NAME=YOUR_MAILGUN_SERVER
|
|
||||||
ssh -t dokku@yourservername.com dokku run {{cookiecutter.repo_name}} python manage.py migrate
|
|
||||||
ssh -t dokku@yourservername.com dokku run {{cookiecutter.repo_name}} python manage.py createsuperuser
|
|
||||||
|
|
||||||
When deploying via Dokku make sure you backup your database in some fashion as it is NOT done automatically.
|
|
Loading…
Reference in New Issue
Block a user