Re: Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment

2009-08-13 Thread Keenan Brock
Hi Grant, I was about to write a follow up on that one - I'm pretty sure they do not have Java installed. I was quick to jump the gun and show how to generate content and serve it up. After I looked at the project I realized the java predicament. http://compressorrater.thruhere.net/ points t

Re: Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment

2009-08-13 Thread Grant Heaslip
Thanks Keenan. Does Heroku have Java installed on their servers (YUI Compressor runs on Java)? If not, any suggestions on other compressors to look into? On Thu, Aug 13, 2009 at 10:29 PM, Keenan Brock wrote: > I was able to put some files into tmp/generated and ln -s from public to > the tmp dir

Re: Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment

2009-08-13 Thread Keenan Brock
I was able to put some files into tmp/generated and ln -s from public to the tmp directory. I did git check in the link Generate to tmp generated You could link individual files or have a whole directory like scripts/ generated link to tmp/generated --K On Aug 13, 2009, at 2:32 AM, Grant He

Re: Small tutorial about Heroku/Github

2009-08-13 Thread Paul Gallagher
Thanks Thomas, I just discovered your article too. You illustrate the branching very clearly and I like the peek into the under-the-covers git config to dispel all "magic". I've linked to it from another article I posted covering the basic dev pattern "collaborate on github, deploy to heroku" http

Re: Site down between Push and Migrate?

2009-08-13 Thread Carl Anderson
I think it might still say that somewhere in the docs because I remember being confused when I updated something a little while ago and something wasn't working, so when I figured out that my migration hadn't been activated yet, which took a little while to pin down as the problem, I was able to fi

Re: Site down between Push and Migrate?

2009-08-13 Thread Ricardo Chimal, Jr.
running migrations before updating the code would still leave you in a similar broken state because the database schema has changed but your code has not been updated for it. Depending on how much has changed will be the severity of your "brokenness". Keep in mind that this is still a small peri

Re: Character set problem reading file and storing in Postgresql table

2009-08-13 Thread Christer Nilsson
Sarah Allen wrote: >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/ Sara, thanks for your answer! Everything works fine now. Had to

Re: Character set problem reading file and storing in Postgresql table

2009-08-13 Thread Sarah Allen
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 wi

CNAME setup w/ notes of CAUTION

2009-08-13 Thread billychamp
I spent 6 hours last night trying to set up my cnames for two apps on heroku, here is what I figured out. Register.com doesn't seem to allow you to do the hostname.ext. (dot trick) as described in Oren Teich's "Screencast tutorial of setting up DNS on GoDaddy"[http:// onticoren.com/2009/06/29/go-

Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment

2009-08-13 Thread Grant Heaslip
I previously used a great Rails plugin called yui_compressor_fu ( http://github.com/maxim/yui_compressor_fu/) to combine and compress my JavaScript and CSS the first time it was loaded in production, but since Heroku doesn't allow access to the filesystem, I need to figure out a new solution. The m

Character set problem reading file and storing in Postgresql table

2009-08-13 Thread Christer Nilsson
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 i

Re: Rolling back a failed deploy

2009-08-13 Thread Casper Fabricius
Okay, based on Ryan's reply I wrote some rake tasks for deploying and rolling back that others might find helpful: http://pastie.org/582587 It seems work just fine, however the rollback outputs this error: -> Heroku receiving push -> Launching.. done http://darebust

Re: Site down between Push and Migrate?

2009-08-13 Thread Chap
Good point Richard, if we have to handle it ourselves I think it deserves a little mention in the docs. I assume that most people are use to capistrano which had a "cap deploy:migrations" command that would run the migrations before symlinking the new code. (Although I never personally tested it.