Discussion:
Transfer ruby in cPanel account
Hegedűs K. László
2017-07-26 05:35:58 UTC
Permalink
Hy Guys!

I've a big problem whit RoR, cause I never used this language and
framework. I've an old server whit 2 ruby sites. I found the sites' files
and databases, and i made a backup/dump.

But know, I need to transfer this sites in a cPanel hosting package, which
has "Ruby on Rails" and "Setup Ruby App" functions in the "Software"
section.

I searched for hours, but I can't find the solution: how to migrate my ruby
site (the files and database dumo) in a cPanel hosting account.

Do you have a documentation, a blogpost, or something, which is useful?
It's abig problem, I have 2 sites now, but I think I will have more later.

Many thanks for your help, ideas!

KRISZ
Hegedűs K. László
2017-08-02 09:20:09 UTC
Permalink
Hello!

Yes, I have root access for the old and new servers too!
Do you also have any way to deploy your application automatically or you
do it via the not so good ol' SFTP?
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Mugurel Chirica
2017-08-02 11:10:04 UTC
Permalink
Looks like you have everything you need to move the servers.

What have you tried and what are the issues you are facing?
Hegedűs K. László
2017-08-04 12:01:47 UTC
Permalink
- First of all, I made a dump from the site's database, and made a backup
from the site files on the old server. It went without problem.

But after, I did this steps:
1 - make a new db-dbuser in cpanel, and imported the sql dump in the
created db
- I see 3 type of Ruby options in the cPanel accont:
* Ruby Gems
* Ruby on Rails
* Setup Ruby App
I clicked the "Setup Ruby App" option (because just this was enabled), and
I made this settings:
Loading Image... .

After, the wtfror.tk gone to Internal Server Error, and in the cpanel/setup
ruby apps, the "app" showed this:
Loading Image... .

The app made some structure:
home/wtfror/public_html/*public/ folder*
home/wtfror/public_html/*tmp/ fodler*
home/wtfror/public_html/*config.ru <http://config.ru/> file*

and

home/wtfror/*rubyvenv/public__html/1.8/bin* *folders*
And the "bin" folder has 3 files: *activate*, *gem*, *ruby*
Post by Mugurel Chirica
Looks like you have everything you need to move the servers.
What have you tried and what are the issues you are facing?
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Hegedűs K. László
2017-08-04 11:51:10 UTC
Permalink
- First of all, I made a dump from the site's database, and made a backup
from the site files on the old server. It went without problem.

But after, I did this steps:
1 - make a new db-dbuser in cpanel, and imported the sql dump in the
created db
- I see 3 type of Ruby options in the cPanel accont:
* Ruby Gems
* Ruby on Rails
* Setup Ruby App
I clicked the "Setup Ruby App" option (because just this was enabled), and
I made this settings: setup01.png .

After, the wtfror.tk gone to Internal Server Error, and in the cpanel/setup
ruby apps, the "app" showed this: setup02.png .

The app made some structure:
home/wtfror/public_html/*public/ folder*
home/wtfror/public_html/*tmp/ fodler*
home/wtfror/public_html/*config.ru <http://config.ru> file*

and

home/wtfror/*rubyvenv/public__html/1.8/bin* *folders*
And the "bin" folder has 3 files: *activate*, *gem*, *ruby*
Post by Mugurel Chirica
Looks like you have everything you need to move the servers.
What have you tried and what are the issues you are facing?
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Loading...