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
Your task will be very challenging since you don't really know Ruby or Ruby
and rails.
We need more information in order to help you (you can search how to get
the answers to those questions easily).
What is your Ruby version?
What is your Ruby on Rails version?
Where is your app hosted right now (you mention old server, is it yours?)
and how do you update code for it to be reflected in the live site?
What hosting are you planning to move to?
What is your plan, move all the servers to the same place etc?
Do you have experience with other apps in any other languages, Laravel,
Symphony, Spring etc?
To get your code online with Rails it's usually called deploying, try
variations on that with your keywords.
Meanwhile here are a few resources:
http://forums.hostgator.com/ruby-rails-support-t13038.html?t=13038
Dear MC!
Thanks for your mail. My answer are these:
**What is your Ruby version?**
On the old server: ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]
On the cPanel-WHM server: ruby 1.8.7 (2013-06-27 patchlevel 374)
[x86_64-linux]
**What is your Ruby on Rails version?**
On the old server: I don't know (fail for "rails
-v": /usr/lib64/ruby/site_ruby/1.8/rubygems.rb:335:in `bin_path': can't
find executable rails for rails-3.2.8 (Gem::Exception)
from /usr/bin/rails:19
On the cPanel-WHM server: Rails 2.3.18
**Where is your app hosted right now (you mention old server, is it yours?)
and how do you update code for it to be reflected in the live site?**
The "app" (website) live on my server, I have SSH and sudo for there. I
cannot access the site's admin.
**What hosting are you planning to move to?**
It's a hungarian company, who provides "Ruby on Rails" and "Setup Ruby App"
functions in cPanel hosting packages.
**What is your plan, move all the servers to the same place etc?**
I just want to migrate/transfer the user's website into a cPanel account
from our old server.
**Do you have experience with other apps in any other languages, Laravel,
Symphony, Spring etc?**
I know the HTML, CSS, PHP and C# programming languages.
KRISZ
···
2017-07-26 11:00 GMT+02:00 Mugurel Chirica <chirica.mugurel@gmail.com>:
Your task will be very challenging since you don't really know Ruby or
Ruby and rails.
We need more information in order to help you (you can search how to get
the answers to those questions easily).
What is your Ruby version?
What is your Ruby on Rails version?
Where is your app hosted right now (you mention old server, is it yours?)
and how do you update code for it to be reflected in the live site?
What hosting are you planning to move to?
What is your plan, move all the servers to the same place etc?
Do you have experience with other apps in any other languages, Laravel,
Symphony, Spring etc?
To get your code online with Rails it's usually called deploying, try
variations on that with your keywords.
Meanwhile here are a few resources:
http://forums.hostgator.com/ruby-rails-support-t13038.html?t=13038
Reddit - Dive into anything
hostgator/
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
On the old server: I don't know (fail for "rails -v":
/usr/lib64/ruby/site_ruby/1.8/rubygems.rb:335:in
`bin_path': can't find executable rails for rails-3.2.8 (Gem::Exception)
from /usr/bin/rails:19
On the cPanel-WHM server: Rails 2.3.18
First of all you need to have the same rails version if you want to move to
go smooth.
If you can get the same versions then it's good to start.
Do you have ssh and root access for the Hungarian hosting server?
Do you also have any way to deploy your application automatically or you do
it via the not so good ol' SFTP?
Hello!
Yes, I have root access for the old and new servers too!
···
2017-07-27 17:36 GMT+02:00 Mugurel Chirica <chirica.mugurel@gmail.com>:
Do you also have any way to deploy your application automatically or you
do it via the not so good ol' SFTP?
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Looks like you have everything you need to move the servers.
What have you tried and what are the issues you are facing?
- 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:
http://www.kepfeltoltes.eu/view.php?filename=213setup01.png .
After, the wtfror.tk gone to Internal Server Error, and in the cpanel/setup
ruby apps, the "app" showed this:
http://www.kepfeltoltes.eu/view.php?filename=653setup02.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*
···
2017-08-02 13:10 GMT+02:00 Mugurel Chirica <chirica.mugurel@gmail.com>:
Looks like you have everything you need to move the servers.
What have you tried and what are the issues you are facing?
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
- 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*
···
2017-08-02 13:10 GMT+02:00 Mugurel Chirica <chirica.mugurel@gmail.com>:
Looks like you have everything you need to move the servers.
What have you tried and what are the issues you are facing?
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>