I''ve been developing my rails app in Windows. The app connects to SQL Server database using the sqladapter gem and through ODBC. I know that the recommended platform for production would be Linux. Whether its possible to deploy my app to Linux? If yes, how hard would that be? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1cHMcMc0tMsJ. For more options, visit https://groups.google.com/groups/opt_out.
I don''t know much about the sqladapter gem and how to get it working on Linux (what dependencies, libraries are needed, etc.), but I had a similar situation where I needed to store my data in an SQL Server backend. In my case, I used TorqueBox (a nice JBoss-based Rails server running on JRuby), which included the JDBC drivers for SQL Server (made using SQL Server super, super easy). By using JRuby (Java) instead of the native Ruby, it didn''t matter which platform I used for development, staging, or production; my environment and dependencies were the same regardless of OS. As far as the actual deployment process, I would seriously consider using Capistrano; I would think it would be possible to use Capistrano on Windows with Cygwin or something similar to deploy to Linux. On Friday, February 22, 2013 2:19:45 AM UTC-5, Mark Nongkhlaw wrote:> > I''ve been developing my rails app in Windows. The app connects to SQL > Server database using the sqladapter gem and through ODBC. I know that the > recommended platform for production would be Linux. > > Whether its possible to deploy my app to Linux? If yes, how hard would > that be? >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/EeWvpCvgPcAJ. For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the info, Josh, but I''m about halfway into my rails app. If I''m to switch over to JRuby, would that mean I have to start from scratch? BTW, I don''t need to store anything into SQL Server. My rails app is just to retrieve the data from SQL Server and output the same in JSON with a REST interface. At the same time, I''d like to explore this TorqueBox/JRuby. Where do I start? On Mon, Feb 25, 2013 at 7:01 AM, Joshua Shane Martin <josmar52789-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I don''t know much about the sqladapter gem and how to get it working on > Linux (what dependencies, libraries are needed, etc.), but I had a similar > situation where I needed to store my data in an SQL Server backend. In my > case, I used TorqueBox (a nice JBoss-based Rails server running on JRuby), > which included the JDBC drivers for SQL Server (made using SQL Server > super, super easy). By using JRuby (Java) instead of the native Ruby, it > didn''t matter which platform I used for development, staging, or > production; my environment and dependencies were the same regardless of OS. > > As far as the actual deployment process, I would seriously consider using > Capistrano; I would think it would be possible to use Capistrano on Windows > with Cygwin or something similar to deploy to Linux. > > > On Friday, February 22, 2013 2:19:45 AM UTC-5, Mark Nongkhlaw wrote: >> >> I''ve been developing my rails app in Windows. The app connects to SQL >> Server database using the sqladapter gem and through ODBC. I know that the >> recommended platform for production would be Linux. >> >> Whether its possible to deploy my app to Linux? If yes, how hard would >> that be? >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/EeWvpCvgPcAJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
You''re welcome. Moving over to JRuby usually requires little to no major changes to your code - provided that you do not use any native-only libraries. Reading vs writing to SQL Server database is irrelevant in this case, because either way, your database configuration would be the same. Check out torquebox.org, they have very good documentation. I''m not sure what kind of application you''re building, but it helps to know that the people behind TorqueBox are building it to be THE enterprise-class platform upon which to deploy Rails. On Mon, Feb 25, 2013 at 3:49 AM, Mark Nongkhlaw <mark.nongkhlaw-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for the info, Josh, but I''m about halfway into my rails app. If I''m > to switch over to JRuby, would that mean I have to start from scratch? BTW, > I don''t need to store anything into SQL Server. My rails app is just to > retrieve the data from SQL Server and output the same in JSON with a REST > interface. > > At the same time, I''d like to explore this TorqueBox/JRuby. Where do I > start? > > On Mon, Feb 25, 2013 at 7:01 AM, Joshua Shane Martin <josmar52789-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> >> I don''t know much about the sqladapter gem and how to get it working on >> Linux (what dependencies, libraries are needed, etc.), but I had a similar >> situation where I needed to store my data in an SQL Server backend. In my >> case, I used TorqueBox (a nice JBoss-based Rails server running on JRuby), >> which included the JDBC drivers for SQL Server (made using SQL Server super, >> super easy). By using JRuby (Java) instead of the native Ruby, it didn''t >> matter which platform I used for development, staging, or production; my >> environment and dependencies were the same regardless of OS. >> >> As far as the actual deployment process, I would seriously consider using >> Capistrano; I would think it would be possible to use Capistrano on Windows >> with Cygwin or something similar to deploy to Linux. >> >> >> On Friday, February 22, 2013 2:19:45 AM UTC-5, Mark Nongkhlaw wrote: >>> >>> I''ve been developing my rails app in Windows. The app connects to SQL >>> Server database using the sqladapter gem and through ODBC. I know that the >>> recommended platform for production would be Linux. >>> >>> Whether its possible to deploy my app to Linux? If yes, how hard would >>> that be? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/EeWvpCvgPcAJ. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- _________________________________ Joshua Shane Martin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.