wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Create a 'Deploy to Heroku' Button

Open spencerthayer opened this issue 8 years ago • 2 comments

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: Deploy

spencerthayer avatar May 15 '17 15:05 spencerthayer

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.

philipjohn avatar Feb 26 '18 19:02 philipjohn

Interesting.

spencerthayer avatar Feb 26 '18 20:02 spencerthayer