AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 133268
Accepted
ManiacZX
ManiacZX
Asked: 2010-04-17 16:39:09 +0800 CST2010-04-17 16:39:09 +0800 CST 2010-04-17 16:39:09 +0800 CST

如何将 ruby​​ on rails 应用程序移动到新服务器

  • 772

我在旧的 Ubuntu 服务器上有一个 rails 应用程序,我需要移动到新机器上。

我没有使用过 ruby​​ on rails,所以我对应用程序的结构一无所知。

我想将此加载到 Amazon EC2 上的 Ubuntu 8.04 AMI 上,并正在寻找有关迁移过程的任何信息,例如:

我是复制在 mongrel 配置中定义为应用程序根目录的整个文件夹(例如:/u/apps/myapp/current)还是仅复制某些文件夹?

如果我使用最新版本的 ruby​​ 和各种 gems,我会在找麻烦吗?

在此过程中需要注意的任何一般问题。

当前服务器信息:

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.
ubuntu web-server ruby-on-rails
  • 1 1 个回答
  • 4015 Views

1 个回答

  • Voted
  1. Best Answer
    Michael Graff
    2010-04-17T19:33:33+08:002010-04-17T19:33:33+08:00

    把整个事情放在电流下。

    您当前的站点可能正在使用 Capistrano 进行部署。如果是这样,您可能想调查一下。如果这是您负责的事情,并且前一个人不再可以与之聊天,那么您也将需要尝试发现更多信息:

    • 这个版本是否受控?
    • 使用 Capistrano 吗?
    • 数据库是否也移动并设置在新主机上?

    如果是标准的 Rails 设置,数据库可能会命名为 application_production。

    此外,查看 config/environment.rb 中可能需要安装的其他内容。该版本的 Rails 相当旧,但仍然可以通过gem install您似乎已经设法做到的方式进行安装。

    • 1

相关问题

  • 如何在 Ubuntu 上设置简单的防火墙?

  • 设置没有密码的用户

  • 在 Ubuntu 上设置电子邮件服务器

  • 保护新的 Ubuntu 服务器 [关闭]

  • (软)Ubuntu 7.10 上的 RAID 6,我应该迁移到 8.10 吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve