From 80e2c8ee365d698071dc7dd5cd9421f2371feb41 Mon Sep 17 00:00:00 2001 From: Ujjwal Bhardwaj Date: Wed, 14 Jun 2017 22:07:39 +0530 Subject: [PATCH] Fixes #119 Configuration to deploy yaydoc to Heroku --- Procfile | 1 + app.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 5 +++++ 3 files changed, 51 insertions(+) create mode 100644 Procfile create mode 100644 app.json create mode 100644 requirements.txt diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..f5980d7b --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: node bin/www \ No newline at end of file diff --git a/app.json b/app.json new file mode 100644 index 00000000..a6bdecde --- /dev/null +++ b/app.json @@ -0,0 +1,45 @@ +{ + "name": "Yaydoc", + "description": "Automatic Documentation Generation and Deployment Project.", + "keywords": [ + "documentation", + "fossasia", + "node", + "sphinx" + ], + "repository": "https://github.com/fossasia/yaydoc", + "env": { + "PYPANDOC_PANDOC": { + "description": "Set path for pandoc.", + "value": "~/vendor/pandoc/bin/pandoc" + }, + "CALLBACKURL": { + "value": "/callback" + }, + "SECRET": { + "generator": "secret" + }, + "CLIENTID": { + "description": "Unique ClientID assigned while registering OAuth App in Github", + "required": true + }, + "CLIENTSECRET": { + "description": "Unique ClientSecret assigned while registering OAuth App in Github", + "required": true + }, + "ON_HEROKU": { + "value": "true" + } + }, + "buildpacks": [ + { + "url": "heroku/nodejs" + }, + { + "url": "heroku/python" + }, + { + "url": "https://github.com/imujjwal96/heroku-buildpack-pandoc.git" + } + ] +} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..0669c764 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +sphinx==1.5.5 +recommonmark +pypandoc +pandocfilters +PyYaml