我有一个旧的Ubuntu服务器上的Rails应用程序,我需要移动到一台新的机器上。
我没有在轨道上使用ruby,所以我真的不知道应用程序的结构。
我想将其加载到Amazon EC2上的Ubuntu 8.04 AMI上,并且正在查找有关迁移过程的任何信息,例如:
我是否复制在mongrelconfiguration中定义为应用程序根目录的整个文件夹(例如:/ u / apps / myapp / current)还是只复制某些文件夹?
如果我使用最新版本的ruby和各种gem,我是否正在寻找麻烦?
任何一般的问题都需要在这个过程中注意。
当前服务器信息:
root@webnode001:/# cat /proc/version Linux version 2.6.15-27-server (buildd@terranova) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 SMP Fri Dec 8 18:43:54 UTC 2006 root@webnode001:/# rails -v Rails 1.2.3 root@webnode001:/# mongrel_rails cluster::configure --version Version 1.0.1 root@webnode001:/# gem -v 0.9.0 root@webnode001:/# gem list -l *** LOCAL GEMS *** actionmailer (1.3.3, 1.2.5) Service layer for easy email delivery and testing. actionpack (1.13.3, 1.12.5) Web-flow and rendering framework putting the VC in MVC. actionwebservice (1.2.3, 1.1.6) Web service support for Action Pack. activerecord (1.15.3, 1.15.2, 1.14.4) Implements the ActiveRecord pattern for ORM. activesupport (1.4.2, 1.4.1, 1.3.1) Support and utility classes used by the Rails framework. cgi_multipart_eof_fix (2.1) Fix an exploitable bug in CGI multipart parsing which affects Ruby <= 1.8.5 when multipart boundary attribute contains a non-halting regular expression string. daemons (1.0.7, 1.0.5, 1.0.4, 1.0.2) A toolkit to create and control daemons in different ways eventmachine (0.7.2, 0.7.0) Ruby/EventMachine socket engine library fastercsv (1.2.0, 1.1.0) FasterCSV is CSV, but faster, smaller, and cleaner. fastthread (1.0) Optimized replacement for thread.rb primitives ferret (0.11.4) Ruby indexing library. gem_plugin (0.2.2, 0.2.1) A plugin system based only on rubygems that uses dependencies only mongrel (1.0.1, 0.3.13.4) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps. mongrel_cluster (0.2.1) Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes. mysql (2.7) MySQL/Ruby provides the same functions for Ruby programs that the MySQL C API provides for C programs. piston (1.3.3) Piston is a utility that enables merge tracking of remote repositories. rails (1.2.3, 1.1.6) Web-application framework with template engine, control-flow layer, and ORM. rake (0.7.3, 0.7.1) Ruby based make-like utility. sources (0.0.1) This package provides download sources for remote gem installation swiftiply (0.5.1) A fast clustering proxy for web applications.
把目前的整个事情。
有可能你当前的网站可能正在使用Capistrano进行部署。 如果是这样,你可能想看看。 如果这是你负责的事情,而以前的人不再可以与之聊天,那么你也会想尝试发现更多的信息:
如果数据库是一个标准的Rails安装程序,数据库可能会被命名为application_production。
另外,在config / environment.rb里面查看你可能需要安装的其他东西。 该版本的Rails是相当旧的,但应该仍然可以通过gem install因为你似乎已经设法做到了。