|
@@ -1,5 +1,3 @@
|
|
|
-[](https://heroku.com/deploy?template=https://github.com/wagtail/bakerydemo)
|
|
|
-
|
|
|
Wagtail demo project
|
|
|
=======================
|
|
|
|
|
@@ -53,7 +51,7 @@ With PIP installed run the following commands:
|
|
|
|
|
|
git clone git@github.com:wagtail/bakerydemo.git
|
|
|
cd wagtaildemo
|
|
|
- pip install -r requirements.txt
|
|
|
+ pip install -r requirements/base.txt
|
|
|
./manage.py migrate
|
|
|
./manage.py load_initial_data
|
|
|
./manage.py runserver
|
|
@@ -66,4 +64,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).
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|