Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add scheduler

Patryk Zawadzkibaefc2186c27
diff --git a/app.json b/app.json
index feb92e837f..985d59bf3d 100644
--- a/app.json
+++ b/app.json
@@ -47,7 +47,8 @@
"heroku-postgresql:hobby-dev",
"heroku-redis:hobby-dev",
"sendgrid:starter",
- "bonsai:sandbox"
+ "bonsai:sandbox",
+ "scheduler:standard"
],
"buildpacks": [
{
diff --git a/docs/deploy.rst b/docs/deploy.rst
index 4a4f279980..e1bd5f8b02 100644
--- a/docs/deploy.rst
+++ b/docs/deploy.rst
@@ -59,3 +59,19 @@ Prepare the database
.. code-block:: bash
$ heroku run python manage.py migrate
+
+
+Updating currency exchange rates
+********************************
+
+This needs to be run periodically. The best way to achieve this is using Heroku's Scheduler service. Let's add it to our application:
+
+.. code-block:: bash
+
+ $ heroku addons:create scheduler
+
+Then log into your Heroku account, find the Heroku Scheduler addon in the active addon list, and have it run the following command on a daily basis:
+
+.. code-block:: bash
+
+ python manage.py update_exchange_rates --all