Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Fix plans script & automate plan sync (#1940)
Browse files Browse the repository at this point in the history
* Update the path to the currencies data file in ops/stripe_plans.js

* Sync plans as a heroku release command
  • Loading branch information
Christopher DeCairos committed Dec 20, 2017
1 parent c7e00d2 commit 4611edd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
@@ -1 +1,2 @@
web: node start.js
release: node ops/stripe_plans.js
3 changes: 2 additions & 1 deletion ops/stripe_plans.js
Expand Up @@ -3,9 +3,10 @@
require("habitat").load();

var async = require("async");
var path = require("path");
var Stripe = require("stripe")(process.env.STRIPE_SECRET_KEY);

var currencies = Object.keys(require("../data/currencies"));
var currencies = Object.keys(require(path.resolve( __dirname, "../src/data/currencies")));
var local_plans = {};
currencies.forEach((currency) => {
local_plans[currency] = {
Expand Down

0 comments on commit 4611edd

Please sign in to comment.