Deployment recommendations?

74 views
Skip to first unread message

John Moroney

unread,
Apr 17, 2012, 9:52:03 PM4/17/12
to radia...@googlegroups.com
I usually deploy to Heroku, but can someone suggest a more Radiant-friendly server? It's the deployment which seems to be the bottleneck, even after the experience of many installs.

Heroku has many advantages, one of which is being free for micro-scale sites and blogs. Are there low-priced, Rails-friendly servers that are still in the Ruby/Rails community?

john

unread,
Apr 18, 2012, 12:01:08 AM4/18/12
to radia...@googlegroups.com
what exactly is the problem with heroku?

John Moroney

unread,
Apr 18, 2012, 9:52:16 PM4/18/12
to radia...@googlegroups.com
It was that I deployed to the cedar stack, mostly. On cedar, it would not resolve sqlite3, saying it was either missing or needed a sqlite3.h. I also had to change the gemfile.lock from radiant (1.0.1) to radiant (1.0.0) for the app to fire. I'm still showing some unresolved dependencies which I'm trying to run down, and now my admin/content is css-less. 

And only on Heroku.

Locally? Brilliant as ever.

For the record, thanks for Radiant. I've been using it since 2006-2007.

John Moroney

Bruce Davison

unread,
Apr 19, 2012, 1:49:16 AM4/19/12
to radia...@googlegroups.com
I Deploy to Bamboo for Radiant. I only use Cedar for Rails 3. Also Heroku doesn't use Sqlite3 it uses Postgresql. If you are using taps to push your db it creates a Postgresql database
Hope that helps

-- 
Bruce Davison
Sent with Sparrow

Jim Gay

unread,
Apr 19, 2012, 11:29:07 AM4/19/12
to radia...@googlegroups.com
I definitely want to support Heroku easily.
Any bug reports or code you can provide would be really helpful.

--
Write intention revealing code #=> http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338

John Moroney

unread,
Apr 19, 2012, 6:22:46 PM4/19/12
to radia...@googlegroups.com
Jim,

bundle update returns radiant (1.0.1) in the gemfile.lock, which crashes the app on heroku
radiant seems to like only the bamboo stack, if that is important

I'm currently having a beast of a time getting Radiant to find the js and image files. They are not being pointed to correctly in the admin interface, though the call is identical to the local copy.

i would very much like to help in any way I can to simplify the radiant/heroku process. My biggest hurdle has always been getting all the necessary information in one source, and then getting current information.

John

john

unread,
Apr 19, 2012, 7:06:29 PM4/19/12
to radia...@googlegroups.com

On Thursday, April 19, 2012 5:22:46 PM UTC-5, John Moroney wrote:
Jim,

bundle update returns radiant (1.0.1) in the gemfile.lock, which crashes the app on heroku

if you use radiant from git 1.0.1 works fine on heroku.

# Gemfile
gem "radiant",  "1.0.1", :git => "git://github.com/radiant/radiant.git", :tag => "1.0.1"

the released gem was built with ruby 1.9 and rubygems 1.8 which leads to a gem incompatible with rubygems 1.3.7 which heroku uses.
 

radiant seems to like only the bamboo stack, if that is important

right. as far as i know heroku only supports rails 3.x on cedar and radiant is on 2.3.x. bamboo and cedar both support ruby 1.9.2 so if there is nothing stopping you from using bamboo it's certainly going to make life easier at least until radiant is on a newer rails.
 

jsntv200

unread,
Apr 19, 2012, 7:23:40 PM4/19/12
to Radiant CMS
Radiant runs fine on cedar. Here's a site Im currently building on the
cedar stack :

http://queminhluu-staging.herokuapp.com/

But there are a few gotcha's with the Gemfile, you'll also need to add
a Procfile and delete the config.ru (breaks compass for some reason I
think).

Here's a gist :

https://gist.github.com/2424787

Locally I generally run without the production group :

$ bundle install --without production

I haven't included any extensions in the Gemfile but if you want to
use Heroku's memcache add-on with Radiant then a simple extension I
created seems to do the trick, just add it to the production group :

gem "radiant-heroku_dalli-extension", "~> 1.0.0"

Cedar also removed the Varnish caching layer but I've been getting
pretty good results out of Cloud Flare [https://www.cloudflare.com/]

cheers
jt





On Apr 20, 8:22 am, John Moroney <j...@juniork.com> wrote:
> Jim,
>
> bundle update returns radiant (1.0.1) in the gemfile.lock, which crashes the app on heroku
> radiant seems to like only the bamboo stack, if that is important
>
> I'm currently having a beast of a time getting Radiant to find the js and image files. They are not being pointed to correctly in the admin interface, though the call is identical to the local copy.
>
> i would very much like to help in any way I can to simplify the radiant/heroku process. My biggest hurdle has always been getting all the necessary information in one source, and then getting current information.
>
> John
>
> On Apr 19, 2012, at 8:29 AM, Jim Gay wrote:
>
>
>
>
>
>
>
> > I definitely want to support Heroku easily.
> > Any bug reports or code you can provide would be really helpful.
>

John Moroney

unread,
Apr 19, 2012, 7:31:52 PM4/19/12
to radia...@googlegroups.com
Do you suppose something in config.ru might be causing Heroku to misplace my image and js files in the admin interface? This is driving me nuts.

github.com/johnmoroney/sugarcat

jsntv200

unread,
Apr 19, 2012, 7:40:33 PM4/19/12
to Radiant CMS
Yep. I never got around to looking into it since everything seems to
work fine if you delete it.

Joel Oliveira

unread,
Apr 19, 2012, 7:54:20 PM4/19/12
to radia...@googlegroups.com
On my phone and haven't checked, but are all these nuggets of quality heroku-related information up on the radiant site and/or github wiki?

John Moroney

unread,
Apr 19, 2012, 8:42:48 PM4/19/12
to radia...@googlegroups.com
Joel,

You're right. I'd like to do a step by step so those with fists of ham like myself can have a five minute install.

Sent from my iPhone

jsntv200

unread,
Apr 19, 2012, 10:35:30 PM4/19/12
to Radiant CMS
It's something I've been meaning to do for awhile now but have been
waiting till 1.0 came out

The following articles:

https://devcenter.heroku.com/articles/cedar
https://devcenter.heroku.com/articles/multiple-environments
https://devcenter.heroku.com/articles/custom-domains
https://devcenter.heroku.com/articles/memcache

Along with the Gist I created:

https://gist.github.com/2424787

And Cloud Flare:

https://www.cloudflare.com/

Will provide all the info you need to get going. Unless someone beats
me to it I'll add it to the wiki when I have a spare 10 minutes.



On Apr 20, 10:42 am, John Moroney <j...@juniork.com> wrote:
> Joel,
>
> You're right. I'd like to do a step by step so those with fists of ham like myself can have a five minute install.
>
> Sent from my iPhone
>
> On 2012-04-19, at 4:54 PM, Joel Oliveira <joel.olive...@gmail.com> wrote:
>
>
>
>
>
>
>
> > On my phone and haven't checked, but are all these nuggets of quality heroku-related information up on the radiant site and/or github wiki?
>

John Moroney

unread,
Apr 21, 2012, 1:36:48 PM4/21/12
to radia...@googlegroups.com
I volunteer to test and post all results.

john

unread,
Apr 21, 2012, 10:34:04 PM4/21/12
to radia...@googlegroups.com
cool. i'll try to duplicate your setup in the next couple of days (and update the wiki if you haven't got to it yet)

Joel Oliveira

unread,
May 9, 2012, 10:35:35 PM5/9/12
to radia...@googlegroups.com
Hi everyone -

Had a chance to finally get a new Radiant project set up on Heroku
tonight and it's pretty much straightforward with some help from
jsntv200's gist (thank you, sir!) - https://gist.github.com/2424787.
Set up my Gemfile as needed (with some cues from that gist, a
Procfile, and the one thing I've seen here and there - remove
config.ru.

Before removing config.ru I wasn't seeing any of my (repo committed)
assets served. After removing it was good to go. For purposes of
oversharing, in short:

heroku create --stack cedar
heroku rename mysite-staging
git push heroku master
heroku run rake db:migrate
heroku db:push
heroku restart
heroku logs --tail

Big ups to you guys who shared all the great feedback

- Joel

Joel Oliveira

unread,
Jun 28, 2012, 11:03:41 PM6/28/12
to radia...@googlegroups.com
Not to bump this back up for the HOW but moreso for the why or "if".

Does anyone host a Radiant powered site on the free heroku plan without much pain? For certain clients of mine the jump from free to $36+ is too much. For me it's negligible but, I know the benefits of heroku.  They don't necessarily get it.

I don't want to deal with hosting stuff any more so pushing for heroku would be a big win.

Thoughts?

Thanks everyone - greatly appreciate it.

- Joel
Reply all
Reply to author
Forward
0 new messages