Re: Permission Denied (publickey) Error

2011-09-15 Thread ken
git command uses the ~/.ssh/id_dsa.pub by default.   That could be the
problem if you selected another as your heroku key.

~K


On Sep 15, 9:15 am, John McCaffrey  wrote:
> This just means that your ssh info is not set up correctly.
>
> try:
> heroku keys --help
> and
> heroku keys
>
> to see if your ssh keys are setup properly. You may just have to go back
> through the instructions on getting you ssh keys created and available to
> heroku. (if the heroku docs don't help, try stackoverflow.com)
>
> On Thu, Sep 15, 2011 at 6:57 AM, Krishna 
> wrote:
>
>
>
>
>
>
>
>
>
> > Hi All,
>
> >  I am new to Heroku platform, Now I am working with Java -Spring
> > application, Today I am testing with sample given in heroku java
> > workbook but i am facing Permission Denied (publickey) Error. Could
> > you please anyone give quick response 4 this error.
>
> > Command I used:
>
> > git push heroku master
> >  Permission denied (publickey).
> > fatal: The remote end hung up unexpectedly
>
> > info:
> > destination address: heroku.com
> > Port 22 is opened for Firewall.
>
> > Thanks & Regards,
> > Krishna.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Heroku" group.
> > To post to this group, send email to heroku@googlegroups.com.
> > To unsubscribe from this group, send email to
> > heroku+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/heroku?hl=en.
>
> --
> Thanks,
> -John

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



CAN'T HOST FILE UPLOAD SAMPLE APP ON HEROKU

2011-05-05 Thread ken bob
Hi,
After hosting my sample app for file upload on heroku using the FREE
account, it does not work properly. However, everything works fine on
my local machine.  Please help

FOR FILE UPLOAD::
// controller.rb
def uploadFile
   if  params[:upload] == nil
 redirect_to(:action => :home, :notice => "File field must not
be empty")
else
name =  params[:upload].original_filename
 directory = "keePass/public/data"
  path = File.join(directory, name)
File.open(path, "wb") { |f|
f.write(params[:upload].read) }
redirect_to(:action => :arrive, :notice => "File has been
uploaded successfully")
end

end

// view.html.erb
File Upload

<% form_tag ({:action =>'uploadFile'}, :multipart=>true) do %>
Select File :

<%= submit_tag "Upload" %>
<% end %>



TWO::: FOR DELETING OF UPLOADED FILE(S)
//controller.rb
def cleanup
  file = params[:file]
   @numFiles = 0
   dir = Dir.entries('keePass/public/data/')
dirN = Array.new
   dir.each{|x|
if File.exist?(x) == false
   dirN << x
end
   }
if dirN ==[]
 redirect_to(:action =>:arrive, :notice =>
'There are no files in this folder!')
else
dirN.each{|c|
 File.delete(File.join('keePass/
public/data/',c))
 @numFiles +=1
  }
 redirect_to(:action =>:arrive, :notice =>
" #{@numFiles} File(s) deleted!")
end
end

// view.html.erb
<%=link_to 'Delete All Files', :action => :cleanup%>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Does heroku support the use of a remote sql server?

2011-04-11 Thread Ken Collins

I would suggest using TinyTDS for the connection.

https://github.com/rails-sqlserver/tiny_tds
http://www.engineyard.com/blog/2011/modern-sql-server-rails/

As of the latest version, we support :host/:port options alleviating
the need for the freetds.conf file. If you are using the latest 0.91
(soon to be released) version of FreeTDS, then it supports encryption
for the connection using SSL, which TinyTDS supports as well.

About the only thing I can think of that would stop you from using
TinyTDS is if heroku supports it. They have a form to fill out to
request gems that have native extensions on their support site. Maybe
worth asking.


 - Ken

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Does heroku support the use of a remote sql server?

2011-04-11 Thread Ken Collins

I would suggest using TinyTDS for the connection.

https://github.com/rails-sqlserver/tiny_tds
http://www.engineyard.com/blog/2011/modern-sql-server-rails/

As of the latest version, we support :host/:port options alleviating
the need for the freetds.conf file. If you are using the latest 0.91
(soon to be released) version of FreeTDS, then it supports encryption
for the connection using SSL, which TinyTDS supports as well.

About the only thing I can think of that would stop you from using
TinyTDS is if heroku supports it. They have a form to fill out to
request gems that have native extensions on their support site. Maybe
worth asking.


 - Ken

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



DISTRIBUTE BLACKBERRY APPLICATION ON HEROKU

2011-02-28 Thread ken bob
Hi,

has anyone any idea on how to distribute a BLACKBERRY APPLICATION
(  i.e .jad and .cod files)
using rails? I would want a little example on how to achieve this on
heroku.

Regards
Ken

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Querying Across Apps on Heroku

2010-01-26 Thread Ken Collins

I've seen live DB to DB solutions fail many times before. But I'm willing to 
admit I could have been doing it wrong :) My advice is to go with on DB and 
partition the app. Others may have better advice.

 - Ken


On Jan 26, 2010, at 2:51 AM, Splashlin wrote:

> I have multiple apps on Heroku that each have their own database.  I
> want to build a new application that serves as a summary tool for all
> the data across the different databases.  What is the best way to
> tackle this issue?
> 
> Should I use one massive database on the new application and just
> point all my other apps to it or is there a way to move from database
> to database collecting the information?
> 
> Thanks
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Tracking Statistics

2010-01-25 Thread Ken Collins

Agreed, middleware sounds way better too.

On Jan 25, 2010, at 11:01 AM, Max A wrote:

> Well, you could make a filter, or you could make Rack middleware to do
> that, or you can access some of your logs with `heroku logs`, though
> as far as I can tell that's mainly for debugging purposes.  I'd
> personally do it as middleware.
> 
> On Jan 24, 6:41 pm, Ken Collins  wrote:
>> I plan on launching a rails site on Heroku sometime soon that is the backend 
>> datastore to a native iPhone application. I was thinking about the ability 
>> to track API calls to my application on the platform and remembered that I 
>> really do not get access to the logs or am I incorrect? The iPhone is not 
>> making MobileSafari calls and hence will never hit the rails application in 
>> such a way that allows analytics to be tracked from JS based HTML page 
>> loads. What are my options for getting stats from the logs or recording my 
>> own stats? Am I just going to have to roll my own after filter at the 
>> controller level that writes request analytics to my API?
>> 
>>  - Thanks,
>>Ken
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Tracking Statistics

2010-01-24 Thread Ken Collins

I plan on launching a rails site on Heroku sometime soon that is the backend 
datastore to a native iPhone application. I was thinking about the ability to 
track API calls to my application on the platform and remembered that I really 
do not get access to the logs or am I incorrect? The iPhone is not making 
MobileSafari calls and hence will never hit the rails application in such a way 
that allows analytics to be tracked from JS based HTML page loads. What are my 
options for getting stats from the logs or recording my own stats? Am I just 
going to have to roll my own after filter at the controller level that writes 
request analytics to my API?

 - Thanks,
   Ken


-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.