Félix Pujols
Félix Pujols

Reputation: 107

How to run Rails web app as a desktop or offline app

I have a rails web application running on the Heroku server, and I need this application to run using a local server, or running offline. I was trying rack-offline but I wonder if there's a simplest way, like a program to use the local server without applying commands in the terminal.

This is for production purpose, the app is already running and they want it to work without an internet connection. The data can be just for offline usage.

I will appreciate any help. thank you.

Upvotes: 1

Views: 820

Answers (1)

RED_
RED_

Reputation: 3007

If you want your application to work offline, and have no connection to the outside world, then you can use ruby-packer or similar to create a binary of your application. This option avoids having end users playing with the terminal.

Think of the implications for your use case though:

  • If multiple people use this application, does the data need to be synced between them all or can they all have a local copy that's different? If so then it needs a data connection.

  • Do you need to maintain the hosted version, and does it need to talk to any of the local copies ever?

Upvotes: 3

Related Questions