33

Im making a tiny web app, really just for personal testing, the app is built with php / mysql, i plan to host it on heroku, but i was wondering is it possible to host stuff on heroku without pushing from git.

I am not too keen on using git as it's another thing to setup and i don't need any collaborators on this project, also if i want to keep my code private i have to sign-up to a premium account. Both of those seem kind of backwards if all i want to do is upload a project to heroku.

Does any one know a way round this where i can upload a local file directly from the command line ?

Caffeine Coder
  • 1,869
  • 1
  • 17
  • 35
sam
  • 9,486
  • 36
  • 109
  • 160
  • 4
    You don't have to use an external service for git per se. And if you do want it, for back-up or collaboration, you could also use Bitbucket. They offer unlimited free private repositories. – Myrne Stol May 14 '13 at 10:56
  • 10
    The deployment uses **git**, not **GitHub**. – Daniel Darabos Jun 30 '14 at 21:43

3 Answers3

21

You can use a plugin heroku push that is built by one of the Heroku engineers. You can find it at https://github.com/ddollar/heroku-push. But there isn't a FTP style upload available if that's what you're looking for.

Also, just because Heroku uses Git doesn't mean you have to have a Github account (since you mention having to have a premium account). All Github provides is an additional place to store your code if you are working on it in a team. There is absolutely NO REASON that you have to use github to use Heroku.

UPDATE: Heroku recently introduced programmatic builds which let you deploy a TAR file directly to Heroku via their API. Read more at https://blog.heroku.com/archives/2013/12/20/programmatically_release_code_to_heroku_using_the_platform_api

UPDATE2: Heroku have now introduced HTTP GIT - much simpler without having to deal with SSH keys and such like. Also, DropBox deployment is pretty neat.

Community
  • 1
  • 1
John Beynon
  • 37,398
  • 8
  • 88
  • 97
11

A current option recommended to replace heroku-push is heroku-builds.

With it, you can use heroku builds:create to deploy the current working directory to a Heroku app, among other things.

jrh
  • 4,101
  • 2
  • 22
  • 27
0

You can use https://github.com/ddollar/heroku-push and push directories without git.

But I think git is better, because you can setup your repository local so your code is privat and source control isn't a worse thing even if you work alone. You may read this

Community
  • 1
  • 1
Sir l33tname
  • 4,026
  • 6
  • 38
  • 49