multiple accounts on one computer
I need to have multiple accounts on heroku to manage personal and corporate projects. I have switched my identity in ~/.heroku/ credentials and that is matched by the user configured with git. When I create a new app, it uses the specified user, but when I try to push it tells me: ! sa...@otherplace.com not authorized to access myapp Where is it getting this other identity from? Thanks, Sarah -- 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.
using bundles to restore a backup
Hi, I really wanted to use heroku bundles:animate myappbaseline --app myapp to restore a baseline build of the app; however, that command creates a new app. It looks like I can do what I want by donwloading the bundle and then doing a db:push; however, I would really like to be able to do this without such a large data transfer. Seem like there should be a way, but I don't see it in the heroku help or online docs. Please advise. Thanks, Sarah --~--~-~--~~~---~--~~ 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: switching my heroku user
thanks. that worked! Seems I can easily switch between apps in different accounts if all I am doing in checking in code and pushing, but to create a new app, I need to switch credentials. On Nov 4, 2009, at 4:58 PM, Erik Pukinskis wrote: > > Your heroku credentials are stored in ~/.heroku/credentials, I > think... if you delete that file, it should prompt you for your new > username/password. If you search for "multiple heroku accounts" I > think there are some other discussions about it. It's generally not > that fun managing 2 heroku accounts. I'm doing it right now. :) Eek! > > Erik > > On Wed, Nov 4, 2009 at 4:28 PM, Sarah Allen > wrote: >> >> I manage two accounts on Heroku: one personal account and one for a >> company. Somehow, I set it up and created the company app a few >> months ago. Now I want to create another company app and I can't >> seem >> to switch my user. >> >> I tried changing my git user, but that doesn't help >> >> master $ git config -l >> user.name=Sarah Allen >> user.email=sa...@company.com >> ... >> >> but when I "heroku create" it creates the app in my other account. >> >> Please help. >> >> Thanks, >> Sarah >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
switching my heroku user
I manage two accounts on Heroku: one personal account and one for a company. Somehow, I set it up and created the company app a few months ago. Now I want to create another company app and I can't seem to switch my user. I tried changing my git user, but that doesn't help master $ git config -l user.name=Sarah Allen user.email=sa...@company.com ... but when I "heroku create" it creates the app in my other account. Please help. Thanks, Sarah --~--~-~--~~~---~--~~ 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: Protecting your production environment
It definitely makes the db commands explicit, like: heroku rake db:migrate --app myapp-production Thanks for the pointer. I've written up a Pivotal Tracker chore and I look forward to trying out that configuration :) On Sep 15, 2009, at 5:45 AM, Carl Fyffe wrote: > > Sarah, > > Here is an explanation of deploying to a production branch: > > http://jqr.github.com/2009/04/25/deploying-multiple-environments-on-heroku.html > > Hope this helps! > > On Tue, Sep 15, 2009 at 8:32 AM, Sarah Allen > wrote: >> >> I thought that Heroku needed the master branch. From the docs: >> "Branches pushed to Heroku other than “master” will be ignored. If >> you’re working out of another branch locally, you should either merge >> to master before pushing, or always specify the branch name to push >> to, as in “git push heroku master”. >> http://docs.heroku.com/git >> >> I do like the idea of having a special production branch. It fits >> normal development practices that I've typically done for larger >> projects. I would prefer not to name it master, although I suppose >> we >> could move everyone to developing on "dev" or something. >> >> On Sep 15, 2009, at 5:11 AM, Carl Fyffe wrote: >> >>> >>> I am not really a fan of the prompt idea. It seems cumbersome and >>> after you have done it 83 times it won't be protection, it will be >>> an >>> annoyance. Just look at Windows Vista's security. >>> >>> I *am* a fan of putting production on a different branch and >>> deploying >>> that. It is very similar to the force, but much more intentional. It >>> has the added bonus of being a good practice. >>> >>> I am sure there are downsides to doing it this way, but I don't see >>> them at the moment. >>> >>> On 9/15/09, Keenan Brock wrote: >>>> >>>> Oops >>>> Scratch previous point #1 >>>> >>>> Hmm. That is odd - I searched for heroku on github and this didn't >>>> come up... >>>> >>>> --Keenan >>>> On Sep 15, 2009, at 5:09 AM, Sarah Allen wrote: >>>> >>>>> >>>>> Yeah, I actually totally munged the live DB right after we went >>>>> live >>>>> (luckily before we told anyone about the site and we had all the >>>>> data >>>>> backed up). I agree that some kind of are-you-sure would be the >>>>> right >>>>> answer. Kind of like 'rm -i' but on by default -- there could be >>>>> a -f >>>>> option to suppress the warning. The gem is open source... I don't >>>>> know offhand how to add an interactive prompt to a rake task, >>>>> but I >>>>> suppose it could be added here: >>>>> http://github.com/heroku/heroku/blob/master/Rakefile >>>>> >>>>> I'm clearly not getting enough sleep this week, so for now I try >>>>> to be >>>>> quite cautious when I type heroku in particular directories, but >>>>> eventually I won't be able to live with that :) >>>>> >>>>> On Sep 15, 2009, at 1:45 AM, Neil wrote: >>>>> >>>>>> >>>>>> At the very least I would expect some sort of "This is a live >>>>>> environment - are you really, really sure you want to do this?" >>>>>> on >>>>>> the >>>>>> app changing actions. (db:push, db:reset etc, similar to destroy) >>>>>> >>>>>> N >>>>>> >>>>>> >>>>>> On Sep 11, 3:14 pm, Carl Anderson wrote: >>>>>>> That was something I was wondering as well. I've literally had >>>>>>> nightmares >>>>>>> about doing just that (am I alone?) >>>>>>> >>>>>>> Carl >>>>>>> >>>>>>> On Fri, Sep 11, 2009 at 4:03 AM, Neil >>>>>>> wrote: >>>>>>> >>>>>>>> I'm not sure if someone has already covered this, but although >>>>>>>> there >>>>>>>> are loads of really handy features in the Heroku gem, some of >>>>>>>> the >>>>>>>> functions that you can acheive are potentially very damaging >>>>>>>> to a >>>>>>>> production environment and also very easy to do. >>>>>>> >>>>>>>> For instance, from what I've seen there is nothing to stop me >>>>>>>> from >>>>>>>> doing a db:push to my live application - there's no sort of >>>>>>>> question >>>>>>>> of confirmation etc. >>>>>>> >>>>>>>> Is this something that's planned or is it something I've just >>>>>>>> not >>>>>>>> seen? >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> http://www.ultrasaurus.com >>>>> >>>>> >>>>> >>>>> >>>>>> >>>> >>>> >>>>> >>>> >>> >>>> >> >> http://www.ultrasaurus.com >> >> >> >> >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: Protecting your production environment
I thought that Heroku needed the master branch. From the docs: "Branches pushed to Heroku other than “master” will be ignored. If you’re working out of another branch locally, you should either merge to master before pushing, or always specify the branch name to push to, as in “git push heroku master”. http://docs.heroku.com/git I do like the idea of having a special production branch. It fits normal development practices that I've typically done for larger projects. I would prefer not to name it master, although I suppose we could move everyone to developing on "dev" or something. On Sep 15, 2009, at 5:11 AM, Carl Fyffe wrote: > > I am not really a fan of the prompt idea. It seems cumbersome and > after you have done it 83 times it won't be protection, it will be an > annoyance. Just look at Windows Vista's security. > > I *am* a fan of putting production on a different branch and deploying > that. It is very similar to the force, but much more intentional. It > has the added bonus of being a good practice. > > I am sure there are downsides to doing it this way, but I don't see > them at the moment. > > On 9/15/09, Keenan Brock wrote: >> >> Oops >> Scratch previous point #1 >> >> Hmm. That is odd - I searched for heroku on github and this didn't >> come up... >> >> --Keenan >> On Sep 15, 2009, at 5:09 AM, Sarah Allen wrote: >> >>> >>> Yeah, I actually totally munged the live DB right after we went live >>> (luckily before we told anyone about the site and we had all the >>> data >>> backed up). I agree that some kind of are-you-sure would be the >>> right >>> answer. Kind of like 'rm -i' but on by default -- there could be >>> a -f >>> option to suppress the warning. The gem is open source... I don't >>> know offhand how to add an interactive prompt to a rake task, but I >>> suppose it could be added here: >>> http://github.com/heroku/heroku/blob/master/Rakefile >>> >>> I'm clearly not getting enough sleep this week, so for now I try >>> to be >>> quite cautious when I type heroku in particular directories, but >>> eventually I won't be able to live with that :) >>> >>> On Sep 15, 2009, at 1:45 AM, Neil wrote: >>> >>>> >>>> At the very least I would expect some sort of "This is a live >>>> environment - are you really, really sure you want to do this?" on >>>> the >>>> app changing actions. (db:push, db:reset etc, similar to destroy) >>>> >>>> N >>>> >>>> >>>> On Sep 11, 3:14 pm, Carl Anderson wrote: >>>>> That was something I was wondering as well. I've literally had >>>>> nightmares >>>>> about doing just that (am I alone?) >>>>> >>>>> Carl >>>>> >>>>> On Fri, Sep 11, 2009 at 4:03 AM, Neil >>>>> wrote: >>>>> >>>>>> I'm not sure if someone has already covered this, but although >>>>>> there >>>>>> are loads of really handy features in the Heroku gem, some of the >>>>>> functions that you can acheive are potentially very damaging to a >>>>>> production environment and also very easy to do. >>>>> >>>>>> For instance, from what I've seen there is nothing to stop me >>>>>> from >>>>>> doing a db:push to my live application - there's no sort of >>>>>> question >>>>>> of confirmation etc. >>>>> >>>>>> Is this something that's planned or is it something I've just not >>>>>> seen? >>>>> >>>>> >>>>> >>> >>> http://www.ultrasaurus.com >>> >>> >>> >>> >>>> >> >> >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: Protecting your production environment
Yeah, I actually totally munged the live DB right after we went live (luckily before we told anyone about the site and we had all the data backed up). I agree that some kind of are-you-sure would be the right answer. Kind of like 'rm -i' but on by default -- there could be a -f option to suppress the warning. The gem is open source... I don't know offhand how to add an interactive prompt to a rake task, but I suppose it could be added here: http://github.com/heroku/heroku/blob/master/Rakefile I'm clearly not getting enough sleep this week, so for now I try to be quite cautious when I type heroku in particular directories, but eventually I won't be able to live with that :) On Sep 15, 2009, at 1:45 AM, Neil wrote: > > At the very least I would expect some sort of "This is a live > environment - are you really, really sure you want to do this?" on the > app changing actions. (db:push, db:reset etc, similar to destroy) > > N > > > On Sep 11, 3:14 pm, Carl Anderson wrote: >> That was something I was wondering as well. I've literally had >> nightmares >> about doing just that (am I alone?) >> >> Carl >> >> On Fri, Sep 11, 2009 at 4:03 AM, Neil >> wrote: >> >>> I'm not sure if someone has already covered this, but although there >>> are loads of really handy features in the Heroku gem, some of the >>> functions that you can acheive are potentially very damaging to a >>> production environment and also very easy to do. >> >>> For instance, from what I've seen there is nothing to stop me from >>> doing a db:push to my live application - there's no sort of question >>> of confirmation etc. >> >>> Is this something that's planned or is it something I've just not >>> seen? >> >> > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: About your application’s environment...
Great explanation. Here's your gold star: http://www.flickr.com/photos/rainriver/402725339/ Thanks Pedro! On Sep 8, 2009, at 10:06 PM, Pedro Belo wrote: > > Hi Sarah! > > Rails "injects" a few actions to your server when running in > development, and this link takes you to one of them > (/rails/info/properties). > > In production they're disabled probably to avoid the overhead -- plus > the information displayed in there can be very useful for attackers > looking for specific Rails versions. > > Pedro > > On Tue, Sep 8, 2009 at 9:52 PM, Sarah Allen > wrote: >> >> Hi everyone, >> >> So, I'm using my favorite hosting service in a Ruby on Rails class >> I'm >> teaching. I get the students to post a vanilla rails app on Heroku >> for starters and one of them clicks on the link "About your >> application’s environment" >> >> "Why?" she asks, "does it say: The page you were looking for doesn't >> exist, when it works in my local environment?" >> >> "um..." I say, "Rails must be doing something Heroku doesn't allow." >> which I consider to be a totally lame answer. >> >> I'll give a gold star to anyone who can give me a better, more >> precise >> answer. You can see the problem here: http://falling-summer-57.heroku.com/ >> >> Thanks, >> Sarah >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
About your application’s environment...
Hi everyone, So, I'm using my favorite hosting service in a Ruby on Rails class I'm teaching. I get the students to post a vanilla rails app on Heroku for starters and one of them clicks on the link "About your application’s environment" "Why?" she asks, "does it say: The page you were looking for doesn't exist, when it works in my local environment?" "um..." I say, "Rails must be doing something Heroku doesn't allow." which I consider to be a totally lame answer. I'll give a gold star to anyone who can give me a better, more precise answer. You can see the problem here: http://falling-summer-57.heroku.com/ Thanks, Sarah --~--~-~--~~~---~--~~ 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: Character set problem reading file and storing in Postgresql table
On Aug 6, 2009, at 3:59 PM, Christer Nilsson wrote: > > I'm pushing my app together with a read-only text file containing > swedish characters, åäö. > When starting the app, it reads the file and stores the text in the > database. > > My problem is, the file contains characters not compatible with what > postgresql expects. > > Q1: what character set is postgresql initialized to use at heroku? Heroku uses UTF-8, to do the same locally, you need to set it at initdb time (and it can't be changed dynamically when the database is running)... initdb --locale=en_US.UTF-8 -D /Library/PostgreSQL/8.4/data/ > > > Q2: what character set must the text file have? UTF-8 > > > Q3: Are there different variations of UTF-8 ? nope, but there are different collations which affects equality and sorting Sarah http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: backups?
very helpful. I'm curious as to the significance of the bundle name... is that just something for my reference, or must it match the app name? Thanks so much! Sarah On Aug 8, 2009, at 11:56 PM, DyingToLearn wrote: > > take a look at the command-line output of "heroku" (http:// > docs.heroku.com/heroku-command) > That show you how to capture and download bundles. > > You choose when to capture bundles. I use this script: > http://github.com/thoughtless/capture_bundle/ > I run it on my own server with cron. > > > > Sarah Allen wrote: >> So perhaps this is so obvious I missed it, but I can't find anything >> in the support database or docs about it. >> >> I turned on backups and chose "single bundle" ... when does the >> backup >> take place? where does it go? how would I recover if I needed to? >> >> Thanks, >> Sarah >> http://www.ultrasaurus.com > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
backups?
So perhaps this is so obvious I missed it, but I can't find anything in the support database or docs about it. I turned on backups and chose "single bundle" ... when does the backup take place? where does it go? how would I recover if I needed to? Thanks, Sarah http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: Changing App Owner
I had no problem just changing my credentials and doing a heroku create with a separate account, then I deleted the app from my old account. On Jul 23, 2009, at 9:19 PM, Ron Evans wrote: > > For much faster responses, I suggest you use the actual Heroku support > system... they do not constantly monitor this mailing list > > r. > > On Thu, Jul 23, 2009 at 6:14 PM, anteaya wrote: >> >> I started the app, hence I am the owner. My account is not verified >> hence, no custom domain names for me. I have added a collaborator who >> is verified and is willing to accept the charges -- since we are on >> blossom, there should be none. >> >> I have not found any way either via the GUI or the command line to >> communicate this situation to heroku so I am open to suggestions of >> how to get the custom_domain addon allowed for my app please. The app >> is currently called high-sky-30 >> >> Thank you, >> Anita. >>> >> > > > > -- > Ron Evans > 310-597-1013 > ron.ev...@gmail.com > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
forcing varnish cache expiration
I'd like to use varnish in my app: http://docs.heroku.com/http-caching The front page has some dynamic content which our staff can update using an admin interface (once per week or so). When that happens I would like to programmatically purge the cache for that page. Is that possible? Thanks, Sarah --~--~-~--~~~---~--~~ 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: html, css and javascript in /public
the answer ended up being that we had a config.ru in the root directory of our app (which was generated when we migrated from 2.0.2 to 2.3.2). We didn't need it and removing it fixed the problem. blakemizerany (on the #heroku irc channel) said: Rails apps are a special case on heroku. If we see a config.ru we treat it like a normal rack app On Jul 9, 2009, at 4:10 PM, Yuri Niyazov wrote: > > map.root :controller => 'media', :action => 'index' > map.home '/', :controller => 'media', :action => 'index' > > remapping the "/" url ensures that you can't get to anything in your > /public directory > > > > > On Thu, Jul 9, 2009 at 7:04 PM, Sarah Allen > wrote: >> >> Yes, I see that the re-directs that I mentioned in my original >> question all display a routing error; however, I've never referred to >> the public directory in a route definition... but in case you see >> anything, here's the routes.rb file: >> >> ActionController::Routing::Routes.draw do |map| >> >> map.root :controller => 'media', :action => 'index' >> >> # RESTful routes >> map.resource :account, :controller => 'account', :member => >> {:edit_password => :get, :update_password => :put } >> map.resource :session >> map.resources :users, :collection => {:forgot_password >> => :any, :forgot_login => :any} >> map.resources :languages >> map.resources :media, :collection => {:lyrics >> => :get}#, :requirements => { :id => /[\w-]+/ } >> >> map.resources :speakers >> >> map.resources :phrases >> >> map.search '/search/source_language/:source_language_code/ >> target_language/:target_language_code.:format', >> :controller => 'media', :action => 'search', >> :target_language_code => nil >> >> map.search_all_languages '/search/ >> target_language/:target_language_code.:format', >> :controller => 'media', :action => 'search' >> >> map.connect '/search/ >> source_language/:source_language_code.:format', >> :controller => 'media', :action => 'search' >> >> map.connect '/search', :controller => 'media', :action => 'search' >> >> # Named routes: >> map.signup '/signup', :controller => 'users', :action => 'new' >> map.login '/login', :controller => 'sessions', :action => 'new' >> map.logout '/logout', :controller => 'sessions', :action => >> 'destroy' >> map.home '/', :controller => 'media', :action => 'index' >> >> # Install the default route as the lowest priority. >> # map.connect ':controller/:action/:id.:format' >> map.connect ':controller/:action/:id' >> end >> >> On Jul 9, 2009, at 3:47 PM, Yuri Niyazov wrote: >> >>> >>> The reason why I bring it up is, when I do a >>> >>> wget "http://mightyverse.heroku.com/javascripts/swfobject.js"; >>> >>> which is a link to one of your javascripts, i get back your main >>> page >>> with the same type of error: >>> >>> No route matches "/javascripts/swfobject.js" >>> with >>> {:method=>:get} (404 Not Found) >>> >>> as opposed to just getting a standard 404 page. You should post up >>> your routes.rb file >>> >>> >>> >>> On Thu, Jul 9, 2009 at 6:41 PM, Sarah Allen >>> wrote: >>>> >>>> That's a bug that the link from the logo is stale and is unrelated. >>>> The issue is that none of the css or the javascript for the page >>>> will >>>> load. >>>> >>>> On Jul 9, 2009, at 3:25 PM, Yuri Niyazov wrote: >>>> >>>>> >>>>> This doesn't seem like a heroku issue: >>>>> >>>>> I just went to http://mightyverse.heroku.com/ and then clicked on >>>>> the >>>>> main link that points to http://mightyverse.heroku.com/home and I >>>>> got >>>>> a "404" back. >>>>> >>>>> On Thu, Jul 9, 2009 at 6:19 PM, Sarah Allen >>>>> wrote: >>>>>> >>>>>> My app works, sort of. It runs but can't seem to access anything >>>>>> in >>>>>> the public directory. Instead the response is 302 Moved >>>>>> Temporarily >>>>>> with the location given as the root page. >>>>>> >>>>>> Any ideas? >>>>>> >>>>>> Thanks, >>>>>> Sarah >>>>>> >>>>>>> >>>>>> >>>>> >>>>>> >>>> >>>> http://www.ultrasaurus.com >>>> >>>> >>>> >>>> >>>>> >>>> >>> >>>> >> >> http://www.ultrasaurus.com >> >> >> >> >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: html, css and javascript in /public
Yes, I see that the re-directs that I mentioned in my original question all display a routing error; however, I've never referred to the public directory in a route definition... but in case you see anything, here's the routes.rb file: ActionController::Routing::Routes.draw do |map| map.root :controller => 'media', :action => 'index' # RESTful routes map.resource :account, :controller => 'account', :member => {:edit_password => :get, :update_password => :put } map.resource :session map.resources :users, :collection => {:forgot_password => :any, :forgot_login => :any} map.resources :languages map.resources :media, :collection => {:lyrics => :get}#, :requirements => { :id => /[\w-]+/ } map.resources :speakers map.resources :phrases map.search '/search/source_language/:source_language_code/ target_language/:target_language_code.:format', :controller => 'media', :action => 'search', :target_language_code => nil map.search_all_languages '/search/ target_language/:target_language_code.:format', :controller => 'media', :action => 'search' map.connect '/search/source_language/:source_language_code.:format', :controller => 'media', :action => 'search' map.connect '/search', :controller => 'media', :action => 'search' # Named routes: map.signup '/signup', :controller => 'users', :action => 'new' map.login '/login', :controller => 'sessions', :action => 'new' map.logout '/logout', :controller => 'sessions', :action => 'destroy' map.home '/', :controller => 'media', :action => 'index' # Install the default route as the lowest priority. # map.connect ':controller/:action/:id.:format' map.connect ':controller/:action/:id' end On Jul 9, 2009, at 3:47 PM, Yuri Niyazov wrote: > > The reason why I bring it up is, when I do a > > wget "http://mightyverse.heroku.com/javascripts/swfobject.js"; > > which is a link to one of your javascripts, i get back your main page > with the same type of error: > > No route matches "/javascripts/swfobject.js" with > {:method=>:get} (404 Not Found) > > as opposed to just getting a standard 404 page. You should post up > your routes.rb file > > > > On Thu, Jul 9, 2009 at 6:41 PM, Sarah Allen > wrote: >> >> That's a bug that the link from the logo is stale and is unrelated. >> The issue is that none of the css or the javascript for the page will >> load. >> >> On Jul 9, 2009, at 3:25 PM, Yuri Niyazov wrote: >> >>> >>> This doesn't seem like a heroku issue: >>> >>> I just went to http://mightyverse.heroku.com/ and then clicked on >>> the >>> main link that points to http://mightyverse.heroku.com/home and I >>> got >>> a "404" back. >>> >>> On Thu, Jul 9, 2009 at 6:19 PM, Sarah Allen >>> wrote: >>>> >>>> My app works, sort of. It runs but can't seem to access anything >>>> in >>>> the public directory. Instead the response is 302 Moved >>>> Temporarily >>>> with the location given as the root page. >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> Sarah >>>> >>>>> >>>> >>> >>>> >> >> http://www.ultrasaurus.com >> >> >> >> >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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: html, css and javascript in /public
That's a bug that the link from the logo is stale and is unrelated. The issue is that none of the css or the javascript for the page will load. On Jul 9, 2009, at 3:25 PM, Yuri Niyazov wrote: > > This doesn't seem like a heroku issue: > > I just went to http://mightyverse.heroku.com/ and then clicked on the > main link that points to http://mightyverse.heroku.com/home and I got > a "404" back. > > On Thu, Jul 9, 2009 at 6:19 PM, Sarah Allen > wrote: >> >> My app works, sort of. It runs but can't seem to access anything in >> the public directory. Instead the response is 302 Moved Temporarily >> with the location given as the root page. >> >> Any ideas? >> >> Thanks, >> Sarah >> >>> >> > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
html, css and javascript in /public
My app works, sort of. It runs but can't seem to access anything in the public directory. Instead the response is 302 Moved Temporarily with the location given as the root page. Any ideas? Thanks, Sarah --~--~-~--~~~---~--~~ 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: Invalid database url for heroku db:push
actually, based on previous response I updated my heroku gem and it worked. Yay! On Jul 9, 2009, at 3:05 PM, Adam Wiggins wrote: > > On Thu, Jul 9, 2009 at 12:46 PM, Sarah Allen > wrote: >> $ heroku db:push >> Invalid database url >> >> development: >> <<: *defaults >> database: mightyverse_dev > > I think the issue here is that taps turns the database credentials > into a URL/URI, and URI.parse considers underscore an invalid > character in the database name. I'm not sure why (this is in the > path, not the hostname) - perhaps a patch to taps to handle this as a > special case would be the workaround. > > Adam > > > http://www.ultrasaurus.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Invalid database url for heroku db:push
I'm trying to push my database to heroku, but I get an error... the command is so simple I am at a loss for how to debug. $ heroku db:push Invalid database url I wasn't sure which database is was going to push. I assume it takes the one based on my RAILS_ENV (which would be development), but then I would assume the heroku app is running in production, so would it use that data? or does it "do what I mean" and push the database from my current env into the heroku environment (as production) My local rails app can access the database fine. Here's my database.yml defaults: &defaults adapter: mysql username: root password: encoding: utf8 socket: /tmp/mysql.sock development: <<: *defaults database: mightyverse_dev # Warning: The database defined as 'test' will be erased and # re-generated from your development database when you run 'rake'. # Do not set this db to the same as development or production. test: <<: *defaults database: mightyverse_test production: <<: *defaults database: mightyverse_production cucumber: <<: *defaults database: mightyverse_cucumber --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
gem requires rack, fails to install
Hi, I have an app that uses a few gems that I am trying to deploy on heroku. I created a .gem file which installs some gems with no problem, but fails to install one: my .gem file has: xoopit-cloudquery --source gems.github.com I get this failure: -> Installing gem xoopit-cloudquery from http://gems.github.com ERROR: Error installing xoopit-cloudquery: xoopit-cloudquery requires rack (>= 1.0, runtime) Building native extensions. This could take a while... error: hooks/pre-receive exited with error code 1 To g...@heroku.com:sharp-dusk-60.git ! [remote rejected] master -> master (pre-receive hook declined) The gem comes from here: http://github.com/nbio/cloudquery/tree/master Do I need to do something special to install rack? I thought that came with Rails 2.3... Confused, Sarah --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---