8 ms·
Introducing Heroku Fork
- cicloid 13y agotrashes old automation scripts Finally it came out of beta... Probably one of the best features for a sane development workflow.
- gkop 13y agoIs it officially out of beta? I tried it a couple weeks ago and found that it didn't successfully re-provision several of my add-ons.
- ryandaigle 13y agoAdd-on provisioning can fail (independent of fork). In that case fork still continues the rest of the process. If you find it's always the same addon(s), please let us know.
- lquist 13y agoLooks great! Unfortunately after the RapGenius fiasco, I don't trust Heroku as a service provider.
- brentm 13y agoEvery company makes mistakes. Who hasn't fallen behind on site copy? Granted their responsibility to keep documentation up to date is much greater than most of ours but I'd like to think (and I believe) they were not willfully deceiving their entire Rails customer base. I am still a fan.
- dantheman 13y agoBut they didn't correct the problem -- they should have refunded at least some of their costs.
- gojomo 13y agoAre you sure they didn't? Refunds could easily have been something evaluated on a 1-by-1 basis, quietly, to avoid creating a stampede of requests even by those negligibly affected. Notably, despite all the public feuding, RapGenius today still appears to be served by Heroku.
- porter 13y agoHeroku is amazing, hands down. It's a shame you don't give them credit for all they've done for web app developers.
- sergiotapia 13y agoSuddenly setting up a staging environment doesn't suck.
- bgentry 13y agoFun fact: `heroku fork` is implemented entirely in the CLI client using pre-existing APIs: https://github.com/heroku/heroku/blob/master/lib/heroku/command/fork.rb https://github.com/heroku/heroku/blob/master/lib/heroku/comm... If you wanted to build something like this, you could do so without any involvement from us by just using the (newly-documented) Heroku Platform API: https://devcenter.heroku.com/articles/platform-api-reference https://devcenter.heroku.com/articles/platform-api-reference
- tomphoolery 13y agoFuck you, Heroku! I made something similar to this for Diaspora: https://bitbucket.org/tubbo/replicator https://bitbucket.org/tubbo/replicator Guess it's not needed anymore! :) Incidentally, if you for some reason want to bake this functionality into an existing gem, it may be easier to use Replicator's library than the Heroku API, since I had to read their source to understand how it all worked. That is, if for some reason you don't want to drop down to the command line and run `heroku fork` from Ruby.
- bgentry 13y agoHopefully the new version of our API would make that kind of thing easier in the future since it's very thoroughly documented: https://devcenter.heroku.com/articles/platform-api-reference https://devcenter.heroku.com/articles/platform-api-reference
- sciurus 13y agoI assume you've being downvoted by people who saw "fuck you" and stopped reading before getting to the ":)"
- sc00ter 13y ago'Fork you' ?
- codebeaker 13y agoIs this really HN worthy? It must be a pretty easy feature to implement with their slug/container workflow. With technologies such as Docker pushing them, Heroku ought to find a way to lower their prices. This at least adds value, but no magic here.
- cuttooth 13y agoYou could ask the same thing of 90% of the stuff here
- fleaflicker 13y agoCopies the source app's Heroku Postgres data, if present. Won't that take a prohibitively long time for large apps?
- Aqua_Geek 13y agoI have 7GB of data sitting in one of their Postgres instances right now. It only takes a couple minutes to backup and restore to a new db, so I guess it depends on how you'd define "prohibitively long."
- jmathai 13y agoAt least they give fair warning.. https://github.com/heroku/heroku/blob/master/lib/heroku/command/fork.rb#L105 https://github.com/heroku/heroku/blob/master/lib/heroku/comm...
- jfarmer 13y agoIt's remarkably fast. The network transfer is AWS-to-AWS if you do it right, so the only time is creating the backup and populating the new DB. It takes almost no time for a ~5GB database I'm using.
- trevorhartman 13y agoImagine how easy-to-use AWS would be if AMZ had anywhere close to the level of focus on usability that Heroku consistently demonstrates.
- andrewguenther 13y agoAnd imagine how limited it's capabilities would be!
- trevorhartman 13y agoI'm not suggesting dumbing-down their product in any way. I'm talking about a usable, well-designed CLI and web console. They've made quite a few incremental improvements over the years, but it's still mediocre at best.
- chameco 13y agoNow if only Github added Heroku integration, so you could fork apps AND code straight from the repo.
- nahname 13y agoThere are quite a few companies playing in that space right now. Personally, if that is your challenge, I wonder what you are even doing making products. Let me write the deployment script for you: heroku create git push heroku master
- steveklabnik 13y agoYou can already hook up this really sweet Github -> Travis CI -> Heroku bridge. Every push runs your tests, if they pass, deploy. It'd be neat to modify this so that pull requests spun up an app you could play with. Travis provides an environment variable that lets you know if you're testing a pull request, hmmm...