Upload rails app to firebase

前端 未结 1 2000
不知归路
不知归路 2020-12-11 07:31

I was wondering if there is a way to upload a rails app to firebase? If so can someone tell me how I can\'t seem to do it. I\'ve tried altering the firebase.json file for my

相关标签:
1条回答
  • 2020-12-11 08:20

    Firebase hosting is a product to serve so-called static application, which consist only of files that the client interprets. Firebase's servers will not interpret any code that you upload. So Firebase hosting is not suited to host your Ruby-on-Rails application.

    To quote Firebase hosting's documentation:

    We deliver all your static content (html, js, images, etc)

    Update: since early 2017 Firebase Hosting can be integrated with Google Cloud Functions. That means that it is now possible to run code in response to requests to files on Firebase Hosting, e.g. to generate hosted content on demand. At the moment this feature is limited to Node.js code. But that is dependent on Google Cloud Functions, so always check what languages that product supports to see what can be integrated into Firebase Hosting.

    0 讨论(0)
提交回复
热议问题