GithubHelp home page GithubHelp logo

docpad-archive / docpad-plugin-heroku Goto Github PK

View Code? Open in Web Editor NEW
5.0 19.0 0.0 139 KB

Deploy to Heroku easily and effortlessly with this DocPad plugin

CoffeeScript 100.00%
docpad-plugin docpad-deploy unsupported

docpad-plugin-heroku's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docpad-plugin-heroku's Issues

Make it work

Originally from: docpad/docpad#254

Now that the extensible cli is done. Having a heroku plugin would be awesome. Here's the requirements:

  1. Check if the heroku remote exists, if it doesn't then
    1. Check if gem exists, if it doesn't, tell them to install it, direct to a wiki page
    2. Check if heroku gem is installed, if it isn't, ask the user if they want it installed
    3. Check if they are logged in with the heroku gem, if not, get them to login
    4. Display a list of their heroku apps, ask if they want to use one or create a new one, if create a new one, what name should it use
    5. With the app they chose, add its git url as the heroku remote
  2. Deploy to the heroku remote

Alternatively, we can use the rest api instead, which would work like so:

  1. Check if the heroku remote exists, if it doesn't then
    1. Run heroku auth:token, and use the result. If it fails, ask for the user's heroku token
    2. Use the heroku token and rest api to fetch a list of apps
    3. List the apps to the user, ask them if they want to use one, or create a new one, if create a new one, what name should it have
    4. With the app they chose, fetch its heroku remote, and add it to the git repo
  2. Deploy to the heroku remote

We can also use the git api to setup a post hook to redeploy to heroku whenever master changes - link: http://developer.github.com/v3/repos/hooks/

Other steps:

  1. Will need to add a ssh key to heroku for docpad in order to do the git pushes to heroku
  2. Will need to create server.js, Procfile, package.json>main, and config.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.