Re: Multiple process types open to web traffic?

2014-03-25 Thread Dave Perrett
If you can identify the automated traffic somehow by IP/UserAgent/etc, you
could use https://github.com/kickstarter/rack-attack to throttle it,
letting regular traffic through unthrottled. It would refuse excess
automated requests though, which may not be what you want (?).

If you just want a duplicate copy of the app, you should be able to point
both apps at the same database and run them in parallel, though this won't
help if the DB is the bottleneck.

dave


On 26 March 2014 11:47, Robert Fletcher lobatifri...@gmail.com wrote:

 We have a situation where we have traffic coming in from two sources. One
 is regular traffic from users, and another is data coming in from automated
 sources. We're running into a problem where there can occasionally be a
 flood of traffic from our automated endpoints that effectively DDOS's our
 servers. The solution we're thinking might be effective would be if we
 could have our automated endpoints transmit their data to a different url
 and have that be managed by a separate process on our Heroku instance.
 Something like `endpoint.ourapp.com`. We're not as concerned about
 responses being prompt on that side of things, though we want our web side
 to remain responsive for our users. Is this possible, and if so, how would
 we go about implementing it? Are there other alternatives that might be
 more effective?

 Thanks,
 - Robert

 --
 --
 You received this message because you are subscribed to the Google
 Groups Heroku group.

 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_US?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 Heroku Community group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to heroku+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
Heroku Community group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sinatra and Active Record logging

2013-03-06 Thread Dave
Hi,

I am using Active Record and have set the logging level to just show errors 
using code like this:

unless ActiveRecord::Base.connected?
logger = Logger.new(STDOUT)
logger.level = Logger::ERROR
ActiveRecord::Base.establish_connection 
ActiveRecord::Base.configurations[:production]
ActiveRecord::Base.logger = logger
end


The problem is when I view my heroku logs, I am still seeing Active Record 
DEBUG lines. How does on set Active Record to be quiet on heroku?

Thanks

-- 
-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
Heroku Community group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to heroku+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




PG Connections and DelayedJob

2012-11-14 Thread Dave
Hi,

I recently ran into an App behaving badly. Has not troubled my till now. 
Basically, it locks itself up and becomes useless throwing PG:Connection 
errors. 

App was on Basic plan development PG plan. Ruby 1.9.3, Sinatra, 
ActiveRecord ORM. 

I use DJ to process webhooks and other tasks, so it is a busy little App 
sometimes, but never 20 concurrent connections. Heroku informed me that 
perhaps the code was errant in not releasing these connections. I kinda 
doubt that since I have other Apps getting even heavier use, with no such 
issues. 

I updated to the Production quality Crane DB, and migrated. Now I have a 
burning question.

- How do you figure out the code responsible for grabbing and holding onto 
a connection at Heroku? Even with 500 connections on Crane, if there is bad 
code, it will chew threw these too and cause same problem.

Any insight into this issue much appreciated.

Thanks



-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


How to get logging to update in a terminal properly?

2012-10-16 Thread Dave
Hi,

Hope this is an easy one. 

When I run heroku -logs -t in my terminal I see output from the router and 
some of the application. Most of the puts statements I use to log stuff to 
stdout is never shown. If I terminate the log command and do a heroku 
ps:restart and then re-open the logs, all my statements are there. 

What is the trick to having heroku logs just dump everything to the 
terminal?

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


Re: Anyone got a PHP example of the Heroku JSON REST API in use?

2012-09-21 Thread Dave
From Stack 
Overflow:http://stackoverflow.com/questions/12532757/php-example-of-the-heroku-json-rest-api
 

$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, 'https://api.heroku.com/apps/myapp/ps');
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt( $ch, CURLOPT_USERPWD, :yesthisismyrealapikeyanditworks);
return  curl_exec($ch); 


This works. 

On Thursday, September 20, 2012 9:34:22 PM UTC-5, Dave wrote:

 I'm trying to get the app process status with the REST API and am having a 
 bit of trouble getting it to return good data

 $ch = curl_init( );

 curl_setopt( $ch, CURLOPT_URL, 'https://api.heroku.com');  // No 
 clue what to put here. 
 curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt( $ch, CURLOPT_USERPWD, 
 :yesthisismyrealapikeyanditworks);   // trust me on this line :)
 curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Accept: 
 application/json', 'Content-Type: application/json')); //total guess
 curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET');
 curl_setopt( $ch, CURLOPT_POSTFIELDS, '
 https://api.heroku.com/apps/myapp/ps');  // where myapp is actually my 
 app name

 // Getting results
 return  curl_exec($ch); 

 This hasn't returned anything useful. I'm new to JSON and curl, so go easy 
 on me please. Thanks.

 Dave


-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


Anyone got a PHP example of the Heroku JSON REST API in use?

2012-09-20 Thread Dave
I'm trying to get the app process status with the REST API and am having a 
bit of trouble getting it to return good data

$ch = curl_init( );

curl_setopt( $ch, CURLOPT_URL, 'https://api.heroku.com');  // No 
clue what to put here. 
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt( $ch, CURLOPT_USERPWD, 
:yesthisismyrealapikeyanditworks);   // trust me on this line :)
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Accept: 
application/json', 'Content-Type: application/json')); //total guess
curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt( $ch, CURLOPT_POSTFIELDS, 
'https://api.heroku.com/apps/myapp/ps');  // where myapp is actually my app 
name

// Getting results
return  curl_exec($ch); 

This hasn't returned anything useful. I'm new to JSON and curl, so go easy 
on me please. Thanks.

Dave

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


Re: Timeouts uploading with dragonfly

2012-07-02 Thread Dave Perrett
Just as a follow-up, I ended up using https://transloadit.com/ for this. 
It added about 3 extra lines of code to the form using the 
transloadit-rails gem, and an extra line in the controller to set the S3 
image path explicitly on the resource. The plugin displays a progress 
bar while uploading to transloadit, then seems to insert some hidden 
fields in the form with details of the uploaded image, which you can 
then access in the controller. The image processing seems to be a lot 
faster than native rails/heroku/dragonfly processing, though i haven't 
benchmarked it. dragonfly width/height/mime-type validators still seem 
to work somehow too which I'm a bit mystified by, as at no point does 
the image go anywhere near the rails server (not that I'm complaining).



John McCaffrey mailto:john.mccaff...@gmail.com
23 June 2012 1:55 AM
I would love some info around this problem as well.

Carrierwave Direct is the only thing I'm aware of, but I hope you post 
whatever solution ends up working for you.







--
Thanks,
-John

--
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en
Dave Perrett mailto:perrett.d...@gmail.com
22 June 2012 1:40 PM
Hi, we're trying to upload relatively large images (~5MB) to S3 via 
heroku/cedar/rails-3.2.3/dragonfly, and are hitting the 30-second 
cutoff pretty consistently. Has anyone found a workaround for 
uploading large files? I'm exploring a couple of options :


1) Upload directly to S3, bypassing heroku. This would be ideal, but 
haven't figured out yet how to integrate this with dragonfly, as it 
seems to rely on a specific combo of mime types and a metadata file to 
display properly.


2) Streaming the request somehow 
(https://devcenter.heroku.com/articles/request-timeout) with the 
'Transfer-Encoding: Chunked' header. I've toyed with this but I think 
this is more targeted at streaming outgoing responses rather than 
incoming uploads (?). This looks similar 
(http://icelab.com.au/articles/money-stress-and-the-cloud/) but again 
I don't think it will help with incoming data.


3) Switch to something like 
https://github.com/dwilkie/carrierwave_direct - this will be a fairly 
major change, and we'd like to avoid it if possible.


Any suggestions or experiences handling large uploads?

Cheers,

Dave


--
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en
inline: postbox-contact.jpginline: postbox-contact.jpg

Timeouts uploading with dragonfly

2012-06-21 Thread Dave Perrett
Hi, we're trying to upload relatively large images (~5MB) to S3 via 
heroku/cedar/rails-3.2.3/dragonfly, and are hitting the 30-second cutoff 
pretty consistently. Has anyone found a workaround for uploading large 
files? I'm exploring a couple of options :


1) Upload directly to S3, bypassing heroku. This would be ideal, but 
haven't figured out yet how to integrate this with dragonfly, as it 
seems to rely on a specific combo of mime types and a metadata file to 
display properly.


2) Streaming the request somehow 
(https://devcenter.heroku.com/articles/request-timeout) with the 
'Transfer-Encoding: Chunked' header. I've toyed with this but I think 
this is more targeted at streaming outgoing responses rather than 
incoming uploads (?). This looks similar 
(http://icelab.com.au/articles/money-stress-and-the-cloud/) but again I 
don't think it will help with incoming data.


3) Switch to something like 
https://github.com/dwilkie/carrierwave_direct - this will be a fairly 
major change, and we'd like to avoid it if possible.


Any suggestions or experiences handling large uploads?

Cheers,

Dave

--
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


way huge slugs - worry / worry not?

2012-04-25 Thread Dave
Hi,

I was used to tight little slugs on the Bamboo stack with MRI 1.9.2,
Sinatra and ~ 6 MB per App

Moved to Cedar and 1.9.3 and my slug has turned more of a PHAT PIG
with a 25MB slug for same App

Everything else is nice and fast... deployments take a little
longer... should I care? Is that normal?

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


Re: ruby 1.9.3, Sinatra and Yaml problems

2012-04-23 Thread Dave
Hi,

Seems to be solved. Heroku rewrites the config/database.yml and so
whatever it does there does not compile to nice YAML. To get around
that problem I changed my configure pattern in Sinatra to read the
DATABASE_URL to setup my Active Record connection, bypassing the
process I was so used to of reading the config/database.yml and I am
back in business. Awkward moment sure, but whatever.

I am kinda scared of using YAML now in my 1.9.3 cedar stack.. but
we'll see.. maybe that actually does work... too..



On Apr 22, 2:30 pm, Dave hunkyb...@gmail.com wrote:
 Hi,

 Moved to cedar stack to try out 1.9.3-p125 and a very simple Sinatra
 App. The attempt to read the config/database.yml file is always
 failing as Psych complains about the YAML.

 I ran it through Yaml Lint and have no idea how something so simple
 could be farking Psych. This is frustrating. The backtrace is
 complaining about a non-existent line in the YAML file too.. I have a
 feeling this is some sort of heroku issue.

 Does anyone have any experience getting a simple 1.9.3 Sinatra  App to
 work with Psych properly???

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


heroku run console

2012-04-23 Thread Dave
Hi,

In all my old Apps running Bamboo stack, I can just type heroku
console and have a nice interactive session that knows my database.

When I do the same on cedar, and I use the heroku run console command,
I now get an IRB like prompt that has no idea my database exists?

What's the secret sauce to getting at my models etc from the new style
console?

Please?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


Re: heroku run console

2012-04-23 Thread Dave
I solved this by adding a console.rb file to my Sinatra App that
loaded active record, my models and connected to the DB. I guess with
great power comes responsibility...

almost got this cedar and Ruby 1.9.3 thing going... perfect...

On Apr 23, 10:26 am, Dave hunkyb...@gmail.com wrote:
 Hi,

 In all my old Apps running Bamboo stack, I can just type heroku
 console and have a nice interactive session that knows my database.

 When I do the same on cedar, and I use the heroku run console command,
 I now get an IRB like prompt that has no idea my database exists?

 What's the secret sauce to getting at my models etc from the new style
 console?

 Please?

 Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


ruby 1.9.3, Sinatra and Yaml problems

2012-04-22 Thread Dave
Hi,

Moved to cedar stack to try out 1.9.3-p125 and a very simple Sinatra
App. The attempt to read the config/database.yml file is always
failing as Psych complains about the YAML.

I ran it through Yaml Lint and have no idea how something so simple
could be farking Psych. This is frustrating. The backtrace is
complaining about a non-existent line in the YAML file too.. I have a
feeling this is some sort of heroku issue.

Does anyone have any experience getting a simple 1.9.3 Sinatra  App to
work with Psych properly???

-- 
You received this message because you are subscribed to the Google
Groups Heroku group.

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_US?hl=en


heroku cli issues

2012-03-22 Thread Dave
Hi,

I have my email account assigned to X heroku apps. I have transferred
ownership at times to other email addresses when necessary. Never had
to re-authenticate to Apps. Now, heroku is asking me to authenticate
with the owner email and password? That is new... when did that start?
Why is a contributor or secondary email addy not good enough?

Also, now, the heroku logs command is scrolling double-spaced? That is
a pain. AFAIK nothing has changed in my terminal, yet all my heroku
logs are now double spaced... weird.

Thirdly... I have an App that now exhibits the following...

!No app specified.
 !Run this command from an app folder or specify which app to use
with --app app name

How did that happen? Is there a way to teach a folder the correct  app
name? How did an App forget it's own app name? When I provide the app
name it works.. but this is painful to have to tack that on... just as
it is to now how to switch authentication.

Anyone else going through this?

-- 
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: heroku cli issues

2012-03-22 Thread Dave
Hi Wesley,

The ownership issue is a strange one indeed. I originally setup the
App, and was the original owner. I transferred ownership to a
different email, and remained as a collaborator.

I went to check a log file out... heroku logs and was prompted for the
credentials. I had no idea why, so I entered them, and then I was able
to access the site. But it meant whenever I switched to another App, I
had to reset my credentials.

So I tried using  ddollar / heroku-accounts

Unfortunately, that failed for me too. I was able to only setup an
account for one App, and then it bugged out...

So I removed that plugin, and the accounts, and went back to manual
mode... not sure why an App asks me to authenticate when I am clearly
a collaborator.

Thanks for fixing the double spacing!!

I checked my remotes... I have 2. heroku and origin ( which is at
github). I do not have two heroku remotes listed... but I will check
closer to see what might be corrupted or screwed up there.




Thanks!

On Mar 22, 12:51 pm, geemus (Wesley Beary) wes...@heroku.com
wrote:
 Hey, sorry to hear you are having trouble.

 I haven't heard about anyone else running into the ownership related
 problems you mentioned.  Is it for all apps you are collaborating on
 or just a particular one?  What commands are you trying to run and
 what does the error look like?  (ie is it explicitly asking for the
 owner credentials?)

 The double spaced issue on logs was a bug, sorry about that, I just
 pushed a fix to master, so it should be back to single spaced in the
 next release.

 The no app specified thing is probably because the folder you are in
 now has more than one remote that points to heroku, so it can no
 longer guess which one is correct.  We have realized that the error in
 that case is not very clear and I actually pushed a fix to make it
 give a better error message some time yesterday.  If you check out
 your .git/config file you can probably remove any remotes that you are
 not using and you might have better luck.  Do let me know if I'm not
 right on that though, it is possible that something else is amiss.

 Hope that helps.

 Thanks!
 wes

 On Mar 22, 9:26 am, Dave hunkyb...@gmail.com wrote:







  Hi,

  I have my email account assigned to X heroku apps. I have transferred
  ownership at times to other email addresses when necessary. Never had
  to re-authenticate to Apps. Now, heroku is asking me to authenticate
  with the owner email and password? That is new... when did that start?
  Why is a contributor or secondary email addy not good enough?

  Also, now, the heroku logs command is scrolling double-spaced? That is
  a pain. AFAIK nothing has changed in my terminal, yet all my heroku
  logs are now double spaced... weird.

  Thirdly... I have an App that now exhibits the following...

  !    No app specified.
   !    Run this command from an app folder or specify which app to use
  with --app app name

  How did that happen? Is there a way to teach a folder the correct  app
  name? How did an App forget it's own app name? When I provide the app
  name it works.. but this is painful to have to tack that on... just as
  it is to now how to switch authentication.

  Anyone else going through this?

-- 
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.



How to best use Scheduler with Workers

2012-03-05 Thread Dave
Hi,

I have always had my delayed jobs run by having them spin up their own
worker, and then clean-up and spin-down their worker when they
complete.

Now I want to have Jobs run at set times in the future. Recurrent
jobs... for example, the client wants four pricing checks to occur,
for the next four weeks, at 11:00pm on Wednesdays.

I have my 4 jobs all setup in my DelayedJob Queue, ready to run at
those times... but I am not into running a worker for the whole
duration of that period of time, since each job may only take 10
seconds, or 2 minutes... seems crazy to run a dedicated worker to do
this... and it seems just as crazy to have 4 workers spawned to live
and die with the 4 events.

So what is a good way to take advantage of the Heroku Scheduler? I
know I can now run a task every 10 minutes for example... I am just
not sure if it is meant to help in this case. I can imagine using it
to spin up a worker to run any jobs that might be runnable, but then I
run into the same issue of spinning down the worker that was started.

What would be a good way to not burn workers but still have the
benefit of scheduling jobs with Delayed Job at random times in the
future?

-- 
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: Sinatra, Delayed Job problems

2012-02-16 Thread Dave
Solved. Turns out Rack Flash is not compatible with Rack 1.4.

On Feb 15, 4:22 pm, Dave hunkyb...@gmail.com wrote:
 Hi,

 I decided to try the new Delayed Job, with Sinatra and ActiveRecord.
 That means 3.0 versions all around including ActiveRecord 3.2.

 I removed the old vendored version of delayed job, and slipped the new
 gems into my gem file.. did a bundle update, and uploaded all the
 heroku.

 Heroku refuses to start... Ruby complains about not having  on a nil
 object. That's all I get... not much to go on...

 Can anyone verify that this stack actually works ???

 - bamboo MRI 1.9.2
 - Active Record 3.2
 - Delayed Job 3.0.1
 - Delayed Job Active Record 0.3.2
 - Sinatra 1.3.2

 I am kinda disappointed it did not just work... sigh,...

 Anyone with any experience in these projects, most appreciated if you
 could fill me in that it works/does not work.

 Thanks!

-- 
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.



Sinatra, Delayed Job problems

2012-02-15 Thread Dave
Hi,

I decided to try the new Delayed Job, with Sinatra and ActiveRecord.
That means 3.0 versions all around including ActiveRecord 3.2.

I removed the old vendored version of delayed job, and slipped the new
gems into my gem file.. did a bundle update, and uploaded all the
heroku.

Heroku refuses to start... Ruby complains about not having  on a nil
object. That's all I get... not much to go on...

Can anyone verify that this stack actually works ???

- bamboo MRI 1.9.2
- Active Record 3.2
- Delayed Job 3.0.1
- Delayed Job Active Record 0.3.2
- Sinatra 1.3.2

I am kinda disappointed it did not just work... sigh,...

Anyone with any experience in these projects, most appreciated if you
could fill me in that it works/does not work.

Thanks!

-- 
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: Taps error with heroku db:push

2011-04-19 Thread Dave Tong
I had this issue so I did an update on my heroku gem and then re-
installed the taps gem and got it sorted.

Hope this helps!

On Apr 19, 9:44 am, davidvm davidvargasm...@gmail.com wrote:
 I have installed the latest Taps gem 0.3.23 locally, but when I run heroku
 db:push I get Taps 0.3.11 loaded and then an error saying Taps v0.3.22 is
 required on this server. Is this problem on my side or on Heroku's?

 Thanks.

-- 
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.



Problem with heroku logs

2011-03-11 Thread Dave
Hi,

I have many Heroku sites, and the command line heroku logs works for
most of them. One in particular though echoes back This feature is
not supported by your client version. No idea why

What is mis-configured for this site? Any usual suspects I can check?

Thanks

-- 
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: Problem with heroku logs

2011-03-11 Thread Dave
Hi,

That was it.. I guess since this site causing the issue was new
enough, it needed the new gem, and my older sites did not...

Dave

On Mar 11, 11:23 am, Neil Middleton neil.middle...@gmail.com wrote:
 Are you running an up to date version of the gem?

 Neil Middletonhttp://about.me/neilmiddleton







 On Friday, 11 March 2011 at 16:21, Dave wrote:
  Hi,

  I have many Heroku sites, and the command line heroku logs works for
  most of them. One in particular though echoes back This feature is
  not supported by your client version. No idea why

  What is mis-configured for this site? Any usual suspects I can check?

  Thanks

  --
  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 
  athttp://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 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: Rails 3 App Failing to Start

2010-04-23 Thread Dave Rupert
Lifesaver!  Totally worked.

On Apr 23, 11:47 am, Terence Lee hon...@gmail.com wrote:
 Try using bundler 0.9.20.

 On Thu, 2010-04-22 at 15:05 -0700, Dave Rupert wrote:
  Hello,
  I have a Rails 3.0.0.beta3 app ( bundler 0.9.23 ) on the bamboo-
  ree-1.8.7 stack that i'm trying to push, but I keep getting stuffed
  and the App is Failing to Start.  Keeps giving me a Read-only file
  system error.   As a result I'm unable to heroku rake, or heroku
  console.

  when I push the master, it says the bundle is complete. any tips on
  where i'm failing?  i'm a bit of a novice.

  thanks in advance,
  Dave

 --
 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 
 athttp://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: X_HTTP_METHOD_OVERRIDE header ignored by Heroku

2010-01-19 Thread Dave Thompson
Thanks to David at support for very quickly helping me find the
following solution:

Heroku Stuff
-
Heroku doesn't support X_HTTP_METHOD_OVERRIDE, but it does support X-
HTTP-METHOD-OVERRIDE. (Presumably this is the case with other headers
too.)

Flex Stuff
-
Flex's object notation, on the other hand, doesn't support dashes
(which is the reason that Flex/Rails architectures use underscores in
the first place). Therefore, you can't specify X-HTTP-METHOD-OVERRIDE
inline within your Flex MXML. Nor can you specify it via standard
property notation within Actionscript. You can do the following:

1) Specify the HTTPService in your MXML, data binding an object
variable (in this case putHeader) into the headers property:
mx:HTTPService id=yourResourceUpdate url=urlHere method=POST
resultFormat=e4x contentType=application/xml
result=callbackFunction(event) headers={putHeader}/

2) Define putHeader as a data bindable object within your CDATA tags:
[Bindable] private var putHeader:Object = new Object();

3) Write the header into the bindable object within a constructor
method, using good old-fashioned array access notation:
public function setup():void
{
putHeader[X-HTTP-METHOD-OVERRIDE] = put;
}
-- 
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.




X_HTTP_METHOD_OVERRIDE header ignored by Heroku

2010-01-18 Thread Dave
Hi,

I have a flex front end that is not terribly REST friendly. The flash
player (which flex runs on) doesn't support either the DELETE or PUT
verbs.

In the local development environment, which runs Rails 2.3.5, I get
around this issue by sending POST requests from flex that include an
X_HTTP_METHOD_OVERRIDE header of either 'put' or 'delete'. Rails
correctly identifies these POSTs as PUT or DELETE requests. (Prior to
Rails 2.3.2 it was also possible to instead include _method=put in the
URL, but no longer.)

However, in Heroku, the X_HTTP_METHOD_OVERRIDE header is apparently
lost or ignored somehow and Rails attempts to process these requests
as POSTs. (Heroku is also on Rails 2.3.5.)

Does anyone know why this is the case or - better still - how I can
simulate PUT and DELETE requests in the Heroku environment?

Thanks in advance,
Dave
-- 
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.




Deploying from rails subdirectory within repository

2010-01-13 Thread Dave
Hi guys,

The Heroku deployment guide includes the following note:

Heroku apps expect the Rails directory structure at the root of the
repository. If your app is inside a subdirectory in your repository,
it won't run when pushed to Heroku.

Currently my repository has three directories in its root: rails (the
web service), flex (a client), iphone (a client). The code within each
of these directories is distinct, but inter-dependent, thus I'd like
to keep it all together in the same repository both locally and on
github, so that any complete code set is identified by a single
commit.

Does anyone have a good system set up that allows them to push from a
subdirectory of the repo? Or another solution possibly leveraging
submodules?

Thanks in advance,
Dave

-- 
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.




problem migrating from herokugarden to heroku

2009-02-14 Thread dave

Hi,

Received an invite to migrate my apps (back) to heroku. Thanks

I'm having problems with the heroku gem (0.5.6) telling me it's
depricated. I've tried uninstalling/updating etc, but no joy. Much as
I hate to admit, I'm kind of stuck. Any tips appreciated.

I've created a heroku account, but can't get much further.

Cheers,
Dave
--~--~-~--~~~---~--~~
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: problem migrating from herokugarden to heroku

2009-02-14 Thread dave

Solved my problem by opening a new Terminal session.

It's always something simple :/

Cheers

On Feb 14, 5:37 pm, dave d.phillip...@gmail.com wrote:
 Hi,

 Received an invite to migrate my apps (back) to heroku. Thanks

 I'm having problems with the heroku gem (0.5.6) telling me it's
 depricated. I've tried uninstalling/updating etc, but no joy. Much as
 I hate to admit, I'm kind of stuck. Any tips appreciated.

 I've created a heroku account, but can't get much further.

 Cheers,
 Dave
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how to limit download bandwidth

2009-02-07 Thread Dave

Hi, I'm new to rails and web app programming in general.  I wrote a
small app in which the user can upload and then download a file to the
db, now, I exceeded my bandwidth and I'm not looking for a blessing
for the app because its just an experiment, but I'm wondering if
there's a way to limit bandwidth for the download by using a
controller helper method such as send_data or send_file.  I use
send_data now which has a buffer attribute that can be set, but I have
a feeling that buffer and bandwidth used in the download are not
linked in this case.  Is this a web server configuration issue?
Thanks, Dave
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Change Password not working

2009-01-30 Thread daVe

I get the following error when trying to change my heroku password via
the Account Settings : Change Password link:
  We're sorry, but something went wrong.  We've been notified about
this issue and we'll take a look at it shortly.

Well, I've been getting this error for what seems like at least a week
now...

Cheers,
daVe
--~--~-~--~~~---~--~~
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: Darn Internal server error

2009-01-20 Thread dave

Thanks guys, that was quick.

On Jan 21, 10:19 am, dave d.phillip...@gmail.com wrote:
 Ditto for broodmarefarm.herokugarden.com

 Is this something we need to let you know about here, or should we
 just sit back and wait for you to fix it when this happens?

 Love the new herokugarden colours :)

 Cheers,
 Dave

 On Jan 20, 11:12 pm, Keenan Brock kee...@thebrocks.net wrote:



  Hi Heroku Gurus,

  Internal server error forhttp://reflectivepixel.com/

  Seems like this is spreading around. :(

  Anything we can do to help you diagnose the problem?

  --Keenan
--~--~-~--~~~---~--~~
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: Can't get haml to work in heroku.

2008-12-29 Thread Dave Roberts

I used a gem to pack the haml gem and it seems to work

On Dec 19, 6:05 pm, morgoth w.wnetr...@gmail.com wrote:
 In 2.2 rails you can pack gems into vendor/gems and you have your own
 copy.
 When there was only 2.1 rails on heroku I used plugin installed (or
 maybe just copied - i don't remember) on my local machine.
 On XP try to move your id_rsa and id_rsa.pub to Documents and Settings/
 user/.ssh folder.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Server failed to start - undefined method `cache_template_extensions=

2008-12-18 Thread Dave Roberts

After importing my app I get this error:
The server for simplebudget failed to start. Details:
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in
`send': undefined method `cache_template_extensions=' for
ActionView::Base:Class (NoMethodError) from /usr/lib/ruby/gems/1.8/
gems/rails-2.2.2/lib/initializer.rb:530:in
`initialize_framework_settings' from /usr/lib/ruby/gems/1.8/gems/
rails-2.2.2/lib/initializer.rb:529:in `each' from /usr/lib/ruby/gems/
1.8/gems/rails-2.2.2/lib/initializer.rb:529:in
`initialize_framework_settings' from /usr/lib/ruby/gems/1.8/gems/
rails-2.2.2/lib/initializer.rb:526:in `each' from /usr/lib/ruby/gems/
1.8/gems/rails-2.2.2/lib/initializer.rb:526:in
`initialize_framework_settings' from /usr/lib/ruby/gems/1.8/gems/
rails-2.2.2/lib/initializer.rb:154:in `process' from /usr/lib/ruby/
gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send' from /usr/
lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run' ...
16 levels... from /usr/lib/ruby/gems/1.8/gems/rack-0.4.0/lib/rack/
builder.rb:22:in `instance_eval' from /usr/lib/ruby/gems/1.8/gems/
rack-0.4.0/lib/rack/builder.rb:22:in `initialize' from /home/
heroku_rack/heroku.ru:1:in `new' from /home/heroku_rack/heroku.ru:1
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---