wallet
wallet copied to clipboard
Create a 'Deploy to Heroku' Button
It would be super useful if we could get a Deploy to Heroku button which would enable users to easily deploy DemocracyOS to a Heroku instance without ever leaving the web browser. And with just a little configuration on the users end they'll have something running almost instantly.
I propose the button because it is ideal for communities who need to make decisions quickly with the flexibility of something like Heroku.
More about Heroku deploy buttons here, https://devcenter.heroku.com/articles/heroku-button .
An example button which currently lacks the required setup files:

I took a stab at this but while the deployment was successful the application isn't working. I'm wondering if it has something to do with the meteor step not being included in the Heroku deployment. Here's the log:
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 8.x...
Downloading and installing node 8.9.4...
Using default npm version: 5.6.0
-----> Restoring cache
Skipping cache restore (not-found)
-----> Building dependencies
Installing node modules (package.json + package-lock)
> [email protected] install /tmp/build_442a8afacb044f9aac5003b38b8ac1ff/SomethingNewUK-sovereign-299a4e0/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
[bcrypt] Success: "/tmp/build_442a8afacb044f9aac5003b38b8ac1ff/SomethingNewUK-sovereign-299a4e0/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote
> Sovereign.app@ postinstall /tmp/build_442a8afacb044f9aac5003b38b8ac1ff/SomethingNewUK-sovereign-299a4e0
> opencollective-postinstall || exit 0
sh: 1: opencollective-postinstall: not found
added 366 packages in 12.776s
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Build succeeded!
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 47.3M
-----> Launching...
Released v3
https://something-new-soverign.herokuapp.com/ deployed to Heroku
As you can see there's not much to see on the deployed app.
Interesting.