need help to move a site from one host to another

158 views
Skip to first unread message

corinna

unread,
May 2, 2012, 4:28:13 AM5/2/12
to Radiant CMS
Hi to everyone,
I am new to this group and to radiant as well.

A friend of a collegue of mine, published a website for my collegue
using radiant 0.9
and now my collegue want the website to be hosted on one of our
server.

I have managed to install radiant 1.0.1 on a debian and
my collegue's friend have given me a zip file of his installation (on
radiant 0.9)

I have search for a procedure to install the website on a new host but
I haven't find
anything that I could use in this case, probably my search was
inefficient.

I need both information on
1) how to move a website from a host to another
2) how to "import" a website from an older version of radiant to a
newer version


Thank you for the support you could give me.
Best regards
Corinna Vera

Jim Gay

unread,
May 2, 2012, 10:33:09 AM5/2/12
to radia...@googlegroups.com
Dump your database from one host and import it into your new server.
Then move the code and any other files over and alter your DNS to
point to the new server.

Do you have any more specific questions?
What database server are you using? (postgresql, mysql, etc.)
What application server are you using? (apache/mongrel, unicorn,
nginx/passenger, etc.)


>
>
> Thank you for the support you could give me.
> Best regards
> Corinna Vera
>



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

Jim Gay
Saturn Flyer LLC
571-403-0338

Jim Gay

unread,
May 2, 2012, 10:33:55 AM5/2/12
to radia...@googlegroups.com
Oh. I forgot to mention these instructions for upgrading:
https://gist.github.com/1540782

corinna

unread,
May 15, 2012, 6:33:01 AM5/15/12
to Radiant CMS
Hi Jim

thank you for the instructions you have given me.
They have worked out fine.

I am experiencing another problem.

I have tried to reset the administrator password following this howto
https://github.com/radiant/radiant/wiki/Reset-Your-Admin-Password

I can see the changes in the user table, however I am not able to
login.
(I have restarted the server, just because it was cheep enough...)
I have noticed that the two hashes are different.

Maybe there is difference between the hash functions that are called
by the webpage
and called from the console.

Sorry for not being able to do it by myself.

Best regards
Corinna
On 2 Mag, 16:33, Jim Gay <j...@saturnflyer.com> wrote:
> Oh. I forgot to mention these instructions for upgrading:https://gist.github.com/1540782
>
>
>
>
>
>
>
>
>
> On Wed, May 2, 2012 at 10:33 AM, Jim Gay <j...@saturnflyer.com> wrote:

Jim Gay

unread,
May 15, 2012, 10:01:03 AM5/15/12
to radia...@googlegroups.com
Are you setting the password in the proper environment?
For example, your server might be running in production or development
and your console uses another environment.

Jim Gay

unread,
Aug 7, 2012, 1:31:00 PM8/7/12
to radia...@googlegroups.com
Nobody will be able to help without specific errors.

Start with posting 1 error here and let's see how we can help.

On Wed, Aug 1, 2012 at 5:46 PM, robert <r.cha...@gmail.com> wrote:
> Excuse me for resurrecting this thread, but I'm trying to do the same thing.
> I'm running Radiant 0.9.1 with the Archive, CopyMove, FancyBox, Navigation
> Tags, Paperclipped, Ray, Reorder and Settings extensions. I copied the MySQL
> DB and the radiant folder to new server. Then began following instructions
> to upgrade. I got a bunch of errors/alerts in step 7 "bundle exec
> script/server". There were several Gem::SourceIndex notices about things
> being deprecated. Then I got a whole bunch of load errors. I tried it again,
> making sure to follow the instructions exactly on the web page, but I'm
> still getting these errors. If I ignore the errors and continue with the
> instructions, I get to the step "bundle exec rake radiant:update" and then
> it aborts because it didn't know how to build the task radiant:update. Could
> someone please help me figure out what I'm doing wrong? I'm going to need
> some hand holding with this. If there's another way to migrate this site,
> I'd be happy to give that a try. Thanks for your help.
>
> Robert

Robert Chang

unread,
Aug 7, 2012, 3:29:36 PM8/7/12
to radia...@googlegroups.com
Jim,

Thanks for the quick reply. Here's the error i get after i try bundle exec script/server:

/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/inflector.rb:3:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#search called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#refresh! is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#refresh! called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:34.
NOTE: Gem::SourceIndex#load_gems_in is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#load_gems_in called from /home/robert/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:322.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/gem_dependency.rb:94.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#search called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:119.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#search called from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:119.
/home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load': cannot load such file -- admin/resource_helper.rb (LoadError)
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `block in load_file'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in `load_file'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in `require_or_load'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in `depend_on'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in `require_dependency'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/actionpack/lib/action_controller/helpers.rb:197:in `default_helper_module!'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/actionpack/lib/action_controller/helpers.rb:212:in `inherited_with_helper'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/app/controllers/admin/resource_controller.rb:1:in `<top (required)>'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `block in load_file'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in `load_file'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in `require_or_load'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/app/controllers/admin/pages_controller.rb:1:in `<top (required)>'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `block in load_file'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in `load_file'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in `require_or_load'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
    from /home/robert/radiant/vendor/extensions/copy_move/copy_move_extension.rb:18:in `activate'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/lib/radiant/extension.rb:86:in `activate_extension'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/lib/radiant/extension_loader.rb:106:in `each'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/lib/radiant/extension_loader.rb:106:in `activate_extensions'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/lib/radiant/initializer.rb:201:in `after_initialize'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/initializer.rb:179:in `process'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/initializer.rb:113:in `run'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/lib/radiant/initializer.rb:157:in `run'
    from /home/robert/radiant/config/environment.rb:12:in `<top (required)>'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `block in require'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    from /home/robert/.rvm/gems/ruby-1.9.3-p194/gems/radiant-0.9.1/vendor/rails/railties/lib/commands/server.rb:84:in `<top (required)>'
    from script/server:3:in `require'
    from script/server:3:in `<main>'

Wasn't sure that this was a real problem, so i continued with the instructions, but then got this when i tried bundle exec rake radiant:update --trace

rake aborted!
Don't know how to build task 'radiant:update'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/task_manager.rb:49:in `[]'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:115:in `invoke_task'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `load'
/home/robert/.rvm/gems/ruby-1.9.3-p194@global/bin/rake:19:in `<main>'
/home/robert/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/home/robert/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'

Since i'm really new to this, i'm hoping i did something dumb that can be easily remedied. Thanks for your help.

Robert

Jim Gay

unread,
Aug 29, 2012, 12:02:02 PM8/29/12
to radia...@googlegroups.com
Robert,

I'm sorry for the late reply.

Your error mentions a problem on:
/home/robert/radiant/vendor/extensions/copy_move/copy_move_extension.rb:18:in
`activate'

What's happening in that file? Checking there may help you and us figure it out.

Robert Chang

unread,
Aug 31, 2012, 1:51:05 PM8/31/12
to radia...@googlegroups.com
Jim,

Thanks for getting back to me. i don't recall editing the contents of this file. Here they are:

require_dependency 'application_controller'

class CopyMoveExtension < Radiant::Extension
  version "2.0.0"
  description "Adds the ability to copy and move a page and all of its children"

  define_routes do |map|
    map.with_options(:controller => "admin/pages") do |cm|
      cm.copy_page_admin_page     '/admin/pages/:id/copy_page',     :action => 'copy_page'
      cm.copy_children_admin_page '/admin/pages/:id/copy_children', :action => 'copy_children'
      cm.copy_tree_admin_page     '/admin/pages/:id/copy_tree',     :action => 'copy_tree'
      cm.move_admin_page          '/admin/pages/:id/move',          :action => 'move'
    end
  end

  def activate
    Admin::PagesController.class_eval do
      include CopyMove::Controller
      helper :copy_move
    end
    Page.class_eval { include CopyMove::Model }
    admin.page.index.add :sitemap_head, 'copy_move_extra_th'
    admin.page.index.add :node, 'copy_move_extra_td', :after => "add_child_column"
    admin.page.index.add :bottom, 'copy_move_popup'
  end
end

Where should i check next? Thanks for your help.

Robert
Reply all
Reply to author
Forward
0 new messages