Using a Rails JSON API as a backend for desktop app - ruby-on-rails

My company is wanting to use a Rails JSON API app as a backend for a desktop app. The Rails JSON API would use a Postgresql database.
However, some customers self host their data, meaning they have a postgresql server installed on a computer the desktop app uses. Because of these users, we would have to deploy this Rails app and customers would have to run the Rails API server on their machines, including Windows machines. Is this a good idea or even possible?

If your customers are running the db themselves, you probably don't need an api, right?
Otoh, there are tools like portable ruby by the phusion team that let you pacakge up a Ruby app. You can also build the app via JRuby as a jar or war and deploy that in any env with Java

Related

Networked Ruby on Rails URL/Address?

I have created an app with a Ruby on Rails backend and a VueJS frontend. I have successfully created the desktop version of the app, but I am now testing and tweaking the mobile version to verify cross compatibility.
The challenge that I am confronted with is that I can access the VueJS portion of my app via the local IP address that the VueJS server provides (http://10.0.0.163:8080), but I have no such networked IP address for the Ruby on Rails server.
As such, my app will appear, but it does not function 100%, as the VueJS app cannot reference the Ruby on Rails address (http://localhost:3000) while being viewed on another networked device.
Does anyone know of a way to change the settings so that I can remotely access the Ruby on Rails server from a networked VueJS address?
If anyone has any resources, it would be of great assistance.
Thank you,
DD

Deploying Ruby On Rails app on macOS Server

So lately, I offer myself a Mac Mini which I want to use as a server (Websites, caching, Xcode Server (which is not working), VPN (which is not working), and stuff). Currently it is running macOS Sierra (10.12.4) with Server.app (5.3) installed. I've successfully enabled Websites & DNS service so my server is accessible from the outside. I have a trusted and valid SSL certificate.
The problem is...
...I don't know how to setup the server to be a production server for Ruby On Rails.
Want I want
To host a web app using Ruby On Rails on macOS server (www.example.com)
To know how to setup the server app to serve a web app
To host a Git repository for the web app code
I looked at the settings for Websites service in the Server app but I didn't find any options for other than PHP and Python.
What I know
My MacBook is already setup with Ruby 2.4 and Rails 5.0. I know how to install Rails for development purpose
Even if it's not straight-forward, post any help you have.
One of my guesses is that I could forward the port opened for the website without specifying a folder where the files are in the Server app.
I'd be pleased of you inlight in some way to achieve my goal.
I am pretty sure that you don't want to actually run production off of your mac mini. That said once you have your rails app running you can run rails s to run your server locally. If you want a production site you should look into either heroku or AWS elastic beanstalk for deployment.

Deploying Rails Application in a restricted server

I am trying to deploying my rails application to a restricted server. And I am not able to install ruby and gems from the open internet because the server is restricted in the network. That server is new it dont have any needful library, database and apache to deploying the app. Please provide me the best way to get all the library and needful gems to keep the app running.

AngularJS frontend and Rails backend with AWS in Ubuntu

I would like to discuss about AngularJS and Ruby on Rails working together and deployed in AWS (Amazon Web Services).
So far, I have a development environment with an AngularJS frontend that sends request to a Ruby on Rails API backend. These both are two separate applications (they are in separated git repositories).
The AngularJS app is running in a Node.js server listening on one port, and Rails is running in a Webrick server listening on another port.
Although they work together, AngularJS is not physically integrated in the RoR app.
Now its time to deploy in production environment. For that, I will use an EC2 AWS instance (currently deploying using Elastic Beanstalk). As far as I understand, I can't have the same architecture here.
I would like to know your suggestions this point. Do you see any advantages or disadvantages?
Should I update my development environment, so the AngularJS app is integrated inside the RoR application (and deploy just one application)?
This is something I don't like, because I guess I have to modify many things.
On the other hand, is it possible to run both applications separately, the same way I do in development?
Can I install a node.js and a Unicorn or whichever server manually in production in the same instance?
I finally deployed with two separated applications as described above. The main difference is around the servers. My AngularJS frontend finally runs on an Nginx. And my Rails API is running on a Unicorn.

Can Ruby on Rails be deployed on Azure Web Sites?

Can I deploy Ruby on Rails on Azure Web Sites?
Not yet. Only .NET and PHP are supported as of now.
It looks like Microsoft have increased their Azure offering:
Microsoft Azure: Ruby Developer Center
Windows Azure SDK for Ruby (Github, docs)
This project provides a Ruby package that makes it easy to access and manage Windows Azure Services like Storage, Service Bus and Virtual Machines.
Ruby on Rails Web application on an Azure VM
This tutorial describes how to host a Ruby on Rails-based web site on Azure using a Linux virtual machine. This tutorial assumes you have no prior experience using Azure. Upon completing this tutorial, you will have a Ruby on Rails-based application up and running in the cloud.
Their Documentation Centre now (April 2014) lists the following platforms:
.Net
Node.js
Java
iOS, Android, Windows
PHP
Python
Ruby
Media
It's in preview now. I just received notification of this: https://feedback.azure.com/forums/169385-web-apps-formerly-websites/suggestions/5582607-add-deploy-support-for-ruby-rails-sinatra-app

Resources