Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Hey all, I've been trying every avenue possible to figure out how to get this thing working. All I'm trying to do is get lp_solve running with my Rails app. As near as I can tell it's a stand-alone binary that I should just be able to drop into the bin directory of my project and be off and

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Yeah, I've logged in with `heroku run bash`. The file is marked executable and when I try executing it directly I get the same error. It works fine locally. On Wed, Oct 9, 2013 at 5:07 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:05 PM, Robert Fletcher lobatifri...@gmail.com

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
I'm calling `bin/lp_solve`. Tab complete. On Wed, Oct 9, 2013 at 5:25 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:11 PM, Robert Fletcher lobatifri...@gmail.com wrote: Yeah, I've logged in with `heroku run bash`. The file is marked executable and when I try executing

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
The more I think about it, I think lp_solve may be running, but it's trying to access some file that isn't there. It just isn't being explicit about which file it's looking for. On Wed, Oct 9, 2013 at 5:30 PM, Robert Fletcher lobatifri...@gmail.comwrote: I'm calling `bin/lp_solve`. Tab

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
It tells me not a dynamic executable On Wed, Oct 9, 2013 at 5:34 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:32 PM, Robert Fletcher lobatifri...@gmail.com wrote: The more I think about it, I think lp_solve may be running, but it's trying to access some file that isn't

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Fletcher lobatifri...@gmail.comwrote: It tells me not a dynamic executable On Wed, Oct 9, 2013 at 5:34 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:32 PM, Robert Fletcher lobatifri...@gmail.com wrote: The more I think about it, I think lp_solve may be running, but it's

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
) /lib/ld-linux.so.2 (0xf7783000) On Wed, Oct 9, 2013 at 5:41 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:37 PM, Robert Fletcher lobatifri...@gmail.com wrote: It tells me not a dynamic executable Are you sure something reasonable is in that file? To wit

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
libs), for GNU/Linux 2.2.5, not stripped On Wed, Oct 9, 2013 at 5:43 PM, Robert Fletcher lobatifri...@gmail.comwrote: Yeah, that's the weird thing. When I run it on my local machine: $ ldd bin/lp_solve linux-gate.so.1 = (0xf7782000) libm.so.6 = /lib/i386-linux-gnu/libm.so.6

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Here's a link to the executable I'm trying to work with: https://s3.amazonaws.com/verdigris-public/lp_solve_5.5.0.13_exe.tar.gz On Wed, Oct 9, 2013 at 5:44 PM, Robert Fletcher lobatifri...@gmail.comwrote: Back on heroku: ~ $ file /bin/bash /bin/bash: ELF 64-bit LSB executable, x86-64

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Hmm, okay, so I'm going to have to compile it myself I take it then... Ran into some hurdles with that, too, but I'll dig in deeper on that side of things. On Wed, Oct 9, 2013 at 5:45 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:43 PM, Robert Fletcher lobatifri...@gmail.com

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
, 2013 at 8:48 PM, Robert Fletcher lobatifri...@gmail.comwrote: Hmm, okay, so I'm going to have to compile it myself I take it then... Ran into some hurdles with that, too, but I'll dig in deeper on that side of things. On Wed, Oct 9, 2013 at 5:45 PM, Daniel Farina dan...@fdr.io wrote

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
a slow and unproductive conversation with Heroku support for a week. On Wed, Oct 9, 2013 at 5:51 PM, Daniel Farina dan...@fdr.io wrote: On Wed, Oct 9, 2013 at 5:48 PM, Robert Fletcher lobatifri...@gmail.com wrote: Hmm, okay, so I'm going to have to compile it myself I take it then... Ran

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
correct? How do I go about executing that with anvil? On Wed, Oct 9, 2013 at 6:27 PM, Daniel Farina dan...@fdr.io wrote: On Oct 9, 2013 6:25 PM, Robert Fletcher lobatifri...@gmail.com wrote: The file output on Heroku was the same as local: ~ $ file bin/lp_solve bin/lp_solve: ELF 32-bit

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
buildpack type: https://gist.github.com/mockdeep/6912134 Build Error: exited 1 On Wed, Oct 9, 2013 at 7:34 PM, Robert Fletcher lobatifri...@gmail.comwrote: Okay, progress made. I've got it compiled locally and pushed it up. I got the following exception on Heroku: ~ $ bin/lp_solve bin

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
: You'll need the link to the raw gist, which you can get by clicking the icon on your gist page. You'll probably want to drop the second ID out of the URL (the commit hash) so that the URL stays valid as you continue to make edits to the gist. On Wed, Oct 9, 2013 at 10:42 PM, Robert Fletcher

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Just realized that the gist hash changes with every change. Should be able to stumble my way through now. On Wed, Oct 9, 2013 at 8:32 PM, Robert Fletcher lobatifri...@gmail.comwrote: Okay, stuck again. It looks to me like it packages up whatever is in the starting directory, so I've updated

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Ah, very helpful. Still getting an empty tar file, though... On Wed, Oct 9, 2013 at 8:46 PM, David Dollar da...@heroku.com wrote: If you drop that second hash from the URL entirely it will just give you the latest one. On Wed, Oct 9, 2013 at 11:45 PM, Robert Fletcher lobatifri

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Hmm, still can't figure out what I'm missing. It compiles without a hitch, and the file is there, but the archive is still empty on the other end. On Wed, Oct 9, 2013 at 8:47 PM, Robert Fletcher lobatifri...@gmail.comwrote: Ah, very helpful. Still getting an empty tar file, though... On Wed

Re: Issues getting custom binary to run on Heroku

2013-10-09 Thread Robert Fletcher
Crap, I'm an idiot. I was looking at the archive wrong. I saw a folder named . and thought it was some pathing thing. The file is there, I've uploaded to Heroku and everything works as expected. Thanks so much for your help guys! On Wed, Oct 9, 2013 at 9:47 PM, Robert Fletcher lobatifri

Re: Issue with root domain

2013-10-13 Thread Robert Fletcher
Did you do `heroku domains:add` for both of them? On Sun, Oct 13, 2013 at 9:17 PM, Prabhu Saitu prabhu.sa...@gmail.comwrote: hey i have a really dumb problem on my hands i have a rails app running on cedar stack... ive setup a custom domain the problem is .customdomain.com wors but

Can't seem to change PATH in buildpack

2013-11-05 Thread Robert Fletcher
I'm trying to get my buildpack working on Heroku, but my executable isn't turning up in the path. I'm trying to add app/vendor/lpsolve to PATH. You can see my release file here: https://github.com/mockdeep/heroku-buildpack-lpsolve/blob/master/bin/release The problem is, within my Rails app on

Re: Can't seem to change PATH in buildpack

2013-11-05 Thread Robert Fletcher
Cool, thanks. I'll give that a try. On Tue, Nov 5, 2013 at 3:29 PM, Keith Rarick k...@heroku.com wrote: On Tue, Nov 5, 2013 at 3:25 PM, Robert Fletcher lobatifri...@gmail.com wrote: I'm trying to get my buildpack working on Heroku, but my executable isn't turning up in the path. I'm

Re: Can't seem to change PATH in buildpack

2013-11-06 Thread Robert Fletcher
That did the trick. Thanks again! On Tue, Nov 5, 2013 at 4:07 PM, Robert Fletcher lobatifri...@gmail.comwrote: Cool, thanks. I'll give that a try. On Tue, Nov 5, 2013 at 3:29 PM, Keith Rarick k...@heroku.com wrote: On Tue, Nov 5, 2013 at 3:25 PM, Robert Fletcher lobatifri...@gmail.com

Re: Heroku Migration not working

2014-02-05 Thread Robert Fletcher
You ran `heroku run rake db:migrate`? On Wed, Feb 5, 2014 at 7:42 PM, Samuel Sosina samsos...@gmail.com wrote: Recently moved from sqlite to Postgresql and successfully moved database over. However when I migrate over to Heroku, the migration doesn't take effect. heres my log file. One

Re: Heroku Migration not working

2014-02-05 Thread Robert Fletcher
you just want to remove that migration. On Wed, Feb 5, 2014 at 7:54 PM, Samuel Sosina samsos...@gmail.com wrote: Yes sir. On Thu, Feb 6, 2014 at 3:51 AM, Robert Fletcher lobatifri...@gmail.comwrote: You ran `heroku run rake db:migrate`? On Wed, Feb 5, 2014 at 7:42 PM, Samuel Sosina samsos

Re: Heroku Migration not working

2014-02-05 Thread Robert Fletcher
could track down the errant one, or `heroku run rake db:schema:load` might bypass the problem. On Wed, Feb 5, 2014 at 7:56 PM, Robert Fletcher lobatifri...@gmail.comwrote: Oh, looks like you're trying to drop a table that doesn't exist. Do you have a migration that does this? Could be you made

Re: Multiple process types open to web traffic?

2014-03-25 Thread Robert Fletcher
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

Re: Multiple process types open to web traffic?

2014-03-26 Thread Robert Fletcher
it writes to https://devcenter.heroku.com/articles/distributing-reads-to-followers-with-octopusthis can help spread the load. On Tue, Mar 25, 2014 at 8:00 PM, Robert Fletcher lobatifri...@gmail.comwrote: Rack::Attack is an interesting idea. Right now we're deploying a separate heroku app

Re: Multiple process types open to web traffic?

2014-03-26 Thread Robert Fletcher
-to-followers-with-octopus this can help spread the load. On Tue, Mar 25, 2014 at 8:00 PM, Robert Fletcher lobatifri...@gmail.com wrote: Rack::Attack is an interesting idea. Right now we're deploying a separate heroku app, but I don't much like that solution both because the database

Re: Watir on heroku

2014-04-01 Thread Robert Fletcher
I've been using heroku-buildpack-multi and it works without any problems. On Tue, Apr 1, 2014 at 3:23 PM, John McCaffrey john.mccaff...@gmail.comwrote: I've never combined multiple buildpacks, but it is possible https://github.com/ddollar/heroku-buildpack-multi let us know how it works

Re: Watir on heroku

2014-04-01 Thread Robert Fletcher
whats happening? Here is the following repo urls I'm using: https://github.com/ddollar/heroku-buildpack-multi.git https://github.com/heroku/heroku-buildpack-ruby.git On Tue, Apr 1, 2014 at 7:25 PM, Robert Fletcher lobatifri...@gmail.comwrote: I've been using heroku-buildpack-multi

Re: Write files in heroku

2014-04-24 Thread Robert Fletcher
You might check out the carrierwave_backgrounder gem: https://github.com/lardawge/carrierwave_backgrounder It might be a good reference even if you don't use it. On Thu, Apr 24, 2014 at 3:22 PM, Daniel Farina dan...@heroku.com wrote: On Thu, Apr 24, 2014 at 3:18 PM, Anand Soni

Postgres deadlock_timeout

2014-10-13 Thread Robert Fletcher
I'm getting Postgres deadlock errors on my Heroku instance, and looking around the docs, it seems like it might be a good idea to increase the deadlock timeout. Is there any way to configure this on Heroku? When I try to run `SET deadlock_timeout=3000` it tells me: ERROR: parameter

Re: for everyone who complete the ruby on rails tutorial by M. hartl

2015-09-21 Thread Robert Fletcher
Checking in your assets isn't ideal, since it makes a mess of your git history. Heroku should be able to precompile your assets on the fly, so I'd check out the build logs and settings in your production.rb file to make sure they fit the recommended settings. Heroku has some docs on asset

Re: for everyone who complete the ruby on rails tutorial by M. hartl

2015-09-21 Thread Robert Fletcher
Should have been "checking in your *precompiled* assets"... On Mon, Sep 21, 2015 at 7:13 PM, Robert Fletcher <lobatifri...@gmail.com> wrote: > Checking in your assets isn't ideal, since it makes a mess of your git > history. Heroku should be able to precompile your ass