简体   繁体   中英

Upload rails app to firebase

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 public path from "." to "app/views/pages" and try to deploy but a message keeps displaying that "can't find index.html in your public folder." If anyone can shed some light on this thanks in advance.

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, eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM