在已经安装了Ruby on Rails的情况下设置Rhodes环境。

时间:2021-10-07 11:32:46

I am learning and have already set up a Ruby on Rails environment based on Hartl's book. I would also like to set up a Rhodes environment for mobile app development.

我正在学习并且已经建立了一个基于Hartl的书的Ruby on Rails环境。我也想建立一个移动应用开发的Rhodes环境。

How would I set up Rhodes after having set up Ruby on Rails, without messing up my Ruby on Rails environment? Also, will I still need RhoSync if I have SQLite3 (or MySQL) with WEBrick (or Apache)?

在设置了Ruby on Rails之后,我如何设置Rhodes,而又不会破坏我的Ruby on Rails环境?此外,如果我有使用WEBrick(或Apache)的SQLite3(或MySQL),我还需要RhoSync吗?

I am running Ubuntu 11.04 (I will use RhoHub for the compiles)

我正在运行Ubuntu 11.04(我将使用RhoHub进行编译)

NOTE: I have found these instructions on the Ubuntu Forum but they are not exactly what I'm looking for, as I am using ruby with RVM

注意:我在Ubuntu论坛上找到了这些说明,但是它们并不是我想要的,因为我正在使用ruby和RVM

Any help would be greatly appreciated.

如有任何帮助,我们将不胜感激。

1 个解决方案

#1


2  

After much searching and reading the Rhomobile book that was just released, if you have a Ruby on Rails environment, all you need to do is:

在搜索和阅读了刚刚发布的Rhomobile书籍之后,如果您有一个Ruby on Rails环境,您需要做的就是:

  • install the "Rhodes" gem
  • 安装“罗兹”宝石
  • install the "Rhosync" gem
  • 安装“Rhosync”宝石
  • the SDK of the phone you wish to develop for (this also depends on your dev machine)
  • 您希望为之开发的电话SDK(这也取决于您的开发机器)

RhoSync is a server on the phone which talks to whatever backend you need, whether it is your own server/DB or another like Heroku (the book gives a Heroku example). This means your DB and Server are not an issue.

RhoSync是电话中的一个服务器,它可以与您需要的任何后端进行对话,无论是您自己的服务器/DB,还是像Heroku一样的另一个服务器(本书给出了一个Heroku示例)。这意味着您的DB和服务器不是问题。

A friendly note to all, I am a beginner so I could stand under correction. I only answered with my findings as not many people had answered this questions, so I assumed not many people knew the answer.

对所有人都是友好的,我是一个初学者,所以我可以站在改正的地方。我只是用我的发现来回答,因为没有多少人回答过这个问题,所以我认为知道答案的人并不多。

Hope this helps other beginners, and feel free to correct my findings if it's needed.

希望这能帮助其他初学者,如果需要的话,可以随时纠正我的发现。

#1


2  

After much searching and reading the Rhomobile book that was just released, if you have a Ruby on Rails environment, all you need to do is:

在搜索和阅读了刚刚发布的Rhomobile书籍之后,如果您有一个Ruby on Rails环境,您需要做的就是:

  • install the "Rhodes" gem
  • 安装“罗兹”宝石
  • install the "Rhosync" gem
  • 安装“Rhosync”宝石
  • the SDK of the phone you wish to develop for (this also depends on your dev machine)
  • 您希望为之开发的电话SDK(这也取决于您的开发机器)

RhoSync is a server on the phone which talks to whatever backend you need, whether it is your own server/DB or another like Heroku (the book gives a Heroku example). This means your DB and Server are not an issue.

RhoSync是电话中的一个服务器,它可以与您需要的任何后端进行对话,无论是您自己的服务器/DB,还是像Heroku一样的另一个服务器(本书给出了一个Heroku示例)。这意味着您的DB和服务器不是问题。

A friendly note to all, I am a beginner so I could stand under correction. I only answered with my findings as not many people had answered this questions, so I assumed not many people knew the answer.

对所有人都是友好的,我是一个初学者,所以我可以站在改正的地方。我只是用我的发现来回答,因为没有多少人回答过这个问题,所以我认为知道答案的人并不多。

Hope this helps other beginners, and feel free to correct my findings if it's needed.

希望这能帮助其他初学者,如果需要的话,可以随时纠正我的发现。