Permalink
Browse files

Fix Heroku button integration.

- Add app.json with env variables.
- Remove redirect.

Signed-off-by: David Calavera <david.calavera@gmail.com>
  • Loading branch information...
calavera committed Mar 16, 2017
1 parent ae80c3a commit 35453cbe3291aa70794817891bf2db509ae2a1a4
Showing with 41 additions and 2 deletions.
  1. +40 −0 app.json
  2. +1 −1 www/site/data/landing.yaml
  3. +0 −1 www/site/static/_redirects
View
@@ -0,0 +1,40 @@
{
"name": "Gocommerce",
"description": "",
"website": "https://www.gocommerceapi.org",
"repository": "https://github.com/netlify/gocommerce",
"env": {
"DATABASE_URL: {},
"GOCOMMERCE_DB_DRIVER": {
"value": "sqlite3"
},
"GOCOMMERCE_DB_AUTOMIGRATE": {
"value": true
},
"GOCOMMERCE_DB_NAMESPACE": {
"value": "auth"
},
"GOCOMMERCE_JWT_SECRET": {
"required": true
},
"GOCOMMERCE_MAILER_ADMIN_EMAIL": {},
"GOCOMMERCE_MAILER_HOST": {},
"GOCOMMERCE_MAILER_MEMBER_FOLDER": {},
"GOCOMMERCE_MAILER_USER": {}
"GOCOMMERCE_MAILER_PASS": {},
"GOCOMMERCE_MAILER_PORT": {},
"GOCOMMERCE_MAILER_SITE_URL": {},
"GOCOMMERCE_MAILER_SUBJECTS_ORDER_CONFIRMATION": {},
"GOCOMMERCE_MAILER_TEMPLATES_ORDER_CONFIRMATION": {},
"GOCOMMERCE_COUPONS_URL": {},
"GOCOMMERCE_COUPONS_USER": {},
"GOCOMMERCE_COUPONS_PASSWORD": {},
"GOCOMMERCE_SITE_URL": {},
"GOCOMMERCE_WEBHOOKS_PAYMENT": {},
"GOCOMMERCE_WEBHOOKS_SECRET": {},
"GOCOMMERCE_PAYMENT_PAYPAL_CLIENT_ID": {},
"GOCOMMERCE_PAYMENT_PAYPAL_ENV": {},
"GOCOMMERCE_PAYMENT_PAYPAL_SECRET": {},
"GOCOMMERCE_PAYMENT_STRIPE_SECRET": {},
}
}
@@ -14,7 +14,7 @@ sections:
body: |
First, you’ll need to get the API running on a server. You can do this quickly and easily with Heroku:
<a href="https://www.heroku.com/deploy/?template=https://github.com/heroku/node-js-getting-started"><img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy"></a>
<a href="https://www.heroku.com/deploy/?template=https://github.com/netlify/gocommerce"><img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy"></a>
- headline: Preparing your site
body: |
Each product you want to sell on your site must have unique URL where GoCommerce can find the meta data needed for calculating pricing and taxes in order to verify that the order is legitimate before using Stripe to charge the client.
@@ -1 +0,0 @@
/* http://github.com/netlify/gocommerce 302!

0 comments on commit 35453cb

Please sign in to comment.