|
@@ -1,5 +1,3 @@
|
|
|
-[](https://heroku.com/deploy?template=https://github.com/wagtail/bakerydemo)
|
|
|
-
|
|
|
Wagtail demo project
|
|
|
=======================
|
|
|
|
|
@@ -55,8 +53,8 @@ With PIP installed run the following commands:
|
|
|
cd wagtaildemo
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
-Next, we'll set up our local environment variables. We use django-dotenv to help with this. It reads environment
|
|
|
-variables located in a file name .env in the top level directory of the project. The only variable we need to start is
|
|
|
+Next, we'll set up our local environment variables. We use [django-dotenv](https://github.com/jpadilla/django-dotenv)
|
|
|
+to help with this. It reads environment variables located in a file name .env in the top level directory of the project. The only variable we need to start is
|
|
|
DJANGO_SETTINGS_MODULE:
|
|
|
|
|
|
$ cp bakerydemo/settings/local.example.py bakerydemo/settings/local.py
|
|
@@ -76,4 +74,24 @@ Because we can't (easily) use ElasticSearch for this demo, we use wagtail's nati
|
|
|
However, native DB search can't search specific fields in our models on a generalized `Page` query.
|
|
|
So for demo purposes ONLY, we hard-code the model names we want to search into `search.views`, which is
|
|
|
not ideal. In production, use ElasticSearch and a simplified search query, per
|
|
|
-http://docs.wagtail.io/en/v1.8.1/topics/search/searching.html
|
|
|
+[http://docs.wagtail.io/en/v1.8.1/topics/search/searching.html](http://docs.wagtail.io/en/v1.8.1/topics/search/searching.html).
|
|
|
+
|
|
|
+### Heroku deployment:
|
|
|
+
|
|
|
+If you need to deploy your demo site to a publicly accessible server [Heroku](https://heroku.com)
|
|
|
+provides a one-click deployment solution:
|
|
|
+
|
|
|
+[](https://heroku.com/deploy?template=https://github.com/wagtail/bakerydemo)
|
|
|
+
|
|
|
+If you do not have a Heroku account, clicking the above button will walk you through the steps
|
|
|
+to generate one. After which, you will be presented with a screen to configure your app. For our purposes,
|
|
|
+we will accept all of the defaults and click `Deploy`. The status of the deployment will dynamically
|
|
|
+update in the browser. Once finished, click `View` to see the public site.
|
|
|
+
|
|
|
+Log into the admin with the credentials ``admin / changeme``.
|
|
|
+
|
|
|
+To learn more about Heroku, read [Deploying Python and Django Apps on Heroku](https://devcenter.heroku.com/articles/deploying-python).
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|