To setup and install Ruby on Rails on any of the cloud platforms, the recommended way is to setup a Ruby on Rails server using the image available in any of the cloud marketplaces below (preinstalled with SQLite3, Node.js and Yarn) :
Disclaimer: Ruby on Rails is a registered trademark of David Heinemeier Hansson and is licensed under MIT License License. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.