Heroku upload

Hi, I’d like some help to upload rails apps to multiple heroku accounts.

I currently have my account configured in mac terminal, but I’m working
on
a job which the client will have the heroku account (but no computer
configured).
How do I upload a rails app I’m working on my computer to his account?

Thank you,
Rodrigo

On Mon, Dec 19, 2011 at 3:22 AM, Rodrigo R. [email protected]
wrote:

I currently have my account configured in mac terminal, but I’m working on a
job which the client will have the heroku account (but no computer
configured).
How do I upload a rails app I’m working on my computer to his account?

git push heroku master, just like any other account. Look at your
.git/config file for your current account.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

Actually I want to upload it without messing with my computer
configuration.
I’d like to upload it online, no terminal.

On Mon, Dec 19, 2011 at 12:34 PM, Hassan S. <

I’d like to deploy a rails app to a heroku account without using
terminal.
I’d like to upload it just like I upload a photo to facebook, so I don’t
have to change my configuration if I need to upload to another account
(like I do)

On Mon, Dec 19, 2011 at 5:13 PM, Hassan S. <

On Mon, Dec 19, 2011 at 8:52 AM, Rodrigo R. [email protected]
wrote:

Actually I want to upload it without messing with my computer configuration.
I’d like to upload it online, no terminal.

Neither of those sentences make any sense to me. Maybe you can
explain more fully what you’re trying to do, as well as why the normal
heroku deployment process isn’t suitable.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

On Mon, Dec 19, 2011 at 11:19 AM, Rodrigo R. [email protected]
wrote:

I’d like to deploy a rails app to a heroku account without using terminal.

Sorry, don’t have any idea how to do that.

I’d like to upload it just like I upload a photo to facebook, so I don’t
have to change my configuration if I need to upload to another account (like
I do)

Sorry, I don’t understand “change my configuration”.

I have multiple sites on heroku; each app, unsurprisingly, has its own
.git/config file. It’s set once, and that’s it. I don’t “change”
anything to
deploy different apps, other than cd to that directory.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

On Mon, Dec 19, 2011 at 2:19 PM, Rodrigo R. [email protected]
wrote:

I’d like to deploy a rails app to a heroku account without using terminal.
I’d like to upload it just like I upload a photo to facebook, so I don’t
have to change my configuration if I need to upload to another account (like
I do)

It sounds like you want a ‘ftp’ style deploy for Heroku. I’m not 100%
sure, but I don’t think you can do that.

If you want a single local app to go to multiple heroku apps, you
might be able to define a git remote for each app… But I’d be afraid
that other things like executing rake, db changes, logs, etc…
wouldn’t work right.


Greg A.
http://twitter.com/akinsgre

Yes, each app has its own .git, but I want one of those apps to be on
another heroku ACCOUNT, that isn’t mine.

On Mon, Dec 19, 2011 at 5:27 PM, Hassan S. <

On Tue, Dec 20, 2011 at 3:49 AM, Rodrigo R.
[email protected]wrote:

Yes, each app has its own .git, but I want one of those apps to be on
another heroku ACCOUNT, that isn’t mine.

i’m not entirely sure what you want to do. If you want to transfer
ownership of a repository to another
owner, you can use the heroku sharing:transfer EMAIL command (if you
don’t
want to use the terminal,
i’m pretty sure there’s a counterpart for this command on the heroku
site).

deploy different apps, other than cd to that directory.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

On Mon, Dec 19, 2011 at 11:49 AM, Rodrigo R. [email protected]
wrote:

Yes, each app has its own .git, but I want one of those apps to be on
another heroku ACCOUNT, that isn’t mine.

So have the project owner add you as a collaborator. Problem solved.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

On Tue, Dec 20, 2011 at 3:04 AM, Rodrigo R. [email protected]
wrote:

If he adds me as a collaborator, how can I upload the project to his account
without changing my terminal configuration?

What “terminal configuration” are you talking about?

Deployment is the same as every other Rails app on Heroku.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

If he adds me as a collaborator, how can I upload the project to his
account without changing my terminal configuration?

On Mon, Dec 19, 2011 at 11:46 PM, Hassan S. <

As far as I know, to deploy to heroku, I have to set my configurations,
meaning I have to set my account name, password and maybe other stuff I
don’t remember (but only once).

I don’t want to change those configurations.

So how do I specify that now I want to deploy to a different heroku
account, but only for that project, no the others

On Tue, Dec 20, 2011 at 9:24 AM, Hassan S. <

what do I have to set at the .git/config?
I’ve never had to manually edit that file.

What I’ve done so far is set (only once) my heroku account at my
terminal,
and now always when I do git push heroku master it always pushes to my
heroku account (no matter what project I’m working on).

On Tue, Dec 20, 2011 at 10:18 AM, Hassan S. <

On Tue, Dec 20, 2011 at 4:03 AM, Rodrigo R. [email protected]
wrote:

As far as I know, to deploy to heroku, I have to set my configurations,
meaning I have to set my account name, password and maybe other stuff I
don’t remember (but only once).

Again, what “configurations” are you talking about? Where exactly are
you setting these things?

So how do I specify that now I want to deploy to a different heroku account,
but only for that project, no the others

Deployment is per application, not “account”. If you’ve been added
to an application as a collaborator, you can deploy that application the
standard way, using the info in .git/config.

You do not have to change anything else.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

On Tue, Dec 20, 2011 at 1:55 PM, Hassan S. <
[email protected]> wrote:

If you have multiple projects on heroku, how can git push distinguish
one from another? HINT: .git/config

Open it up and look at it. Compare what you see to the information
on your own https://api.heroku.com/myapps individual pages.

If you’ve been added to an application as a collaborator, you can
deploy that application the standard way

Not sure if this helps, but trying for the best …

Maybe the OP is refering to the public/private key pair, as in

~/.ssh/id_rsa
~/.ssh/id_rsa_pub

If he wants to execute ‘git push’ to a git remote on which he has no
write
access, he may need to use a different id_rsa (or id_dsa) key to obtain
write access rights to that other “account” of his customer (or add his
own public key to the project of the customer)??

Maybe the OP can publish the result of

$ git remote -v

on the different projects to make this clear ?

Searching for 30 seconds on the Heroku help pages, leads me to this
passage

http://help.github.com/linux-set-up-git/

Add your SSH key to GitHub.

On the GitHub site Click Account Settings > Click SSH Public Keys>
Click Add another public key
**Maybe this is the one-time Account set-up the OP is referring to ??

If that is the issue, there are 2 options:

  • add his public key to the project of his customer (via the Heroku
    interface) <= prefered
  • use the private key of the customer on his local dev machine (<= not
    prefered)

HTH (but not certain),

Peter


Peter V.
http://twitter.com/peter_v
http://rails.vandenabeele.com

On Tue, Dec 20, 2011 at 4:38 AM, Rodrigo R. [email protected]
wrote:

and now always when I do git push heroku master it always pushes to my
heroku account (no matter what project I’m working on).

One. Last. Time.

Deployment is per application, not “account”.

If you have multiple projects on heroku, how can git push distinguish
one from another? HINT: .git/config

Open it up and look at it. Compare what you see to the information
on your own https://api.heroku.com/myapps individual pages.

If you’ve been added to an application as a collaborator, you can
deploy that application the standard way


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

I use ddollar’s https://github.com/ddollar/heroku-accounts to be able to
switch between different heroku accounts on my machine. The author is an
engineer at heroku, can’t get better than that!

E/

Pretty simple -

type “heroku logout”
then “heroku login” - enter the details for the account you want to
upload to, and then “heroku keys:add” to add your SSL key, push your
updates with “git push heroku master”
finally “heroku logout” and “heroku login” back to your own account.

Simple, if you read the help files…

On Wed, Dec 21, 2011 at 2:41 PM, Emanuele T. [email protected]
wrote:

I use ddollar’shttps://github.com/ddollar/heroku-accounts to be able to
switch between different heroku accounts on my machine.

Good to know about, but it doesn’t address the OP’s use case that
involves an application belonging to another person’s account.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs