Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last month.
Improve this question
I am aiming to deploy a simple web-app written with Streamlit, e.g.
app.py
-
import streamlit as st
st.title('Hello World!')
I can run this on my local machine by running streamlit run app.py in my command line.
However, I'm not sure how to deploy it on firebase hosting.
Any advice?
actually I don't know if there's a way to deploy it using firebase hosting as it is mainly for static content and also right now there isn’t a way to directly deploy your app through Streamlit, but we are working on our “For Teams” offering which is currently in the development phase.
If you’d like to sign-up and hear about it when more information becomes available here is the link.
In the meantime, the community has come up with some amazing ways to deploy Streamlit apps 🤩. Here are a few forum discussions:
Deploying on Azure
Deploying on Glitch
Deploying on Heroku
A few additional resources would be this article written on Medium:
Deploying with AWS EC2 3
And a couple of YouTube video tutorials by JCharis:
How to deploy Streamlit apps [using Heroku]
How to deploy Streamlit apps on AWS Ec2
Hopefully this helps and feel free to let me know if you have any questions! Also any feedback you have on the type of deployment and sharing you would like would be useful as we shape the For Teams product.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I understand that Firebase is BAAS and Google Cloud is IAAS. Lets say, I have a web application which I want to host in Firebase platform provided by Google. In this case, does it mean that my app will be deployed using GAE or Cloud run?
Lets assume that in future Google deprecates Google App Engine, which is serverless component in Google Cloud. Wil this have any impact in the apps hosted in firebase console?
I am trying to understand how it works...
Firebase is a serverless platform, enabling pwa/mobile apps developers with "backend tools" that do not require classic backend development/deploy/maintenance.
It actually combines some frontend specific services (like Test Lab or Hosting) with "lifted" GCP Services (like Cloud Functions, Storage, Authentication, etc), to make GCP more accessible to frontend/mobile developers.
You could deploy the frontend of your app to Firebase Hosting, while using Firebase Functions (lifted GCP Cloud Functions) to run your backend logic (be aware that cloud functions have many different requirements compared to AppEngine -> work differently).
Cloud Functions behind the scenes run on Cloud Run, but that's totally transparent to you.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 12 months ago.
Improve this question
I downloaded a flutter app from GitHub and it contains Firebase. I cannot run the program because it must be linked first. How do I do this with a program that contains all the codes
please I need help, thanks
Note: Depends whether you previously worked with firebase or not(experience).
These are some generic steps for linking existing android app:
Go to https://firebase.google.com/ and sign in with your Gmail.
Create new project by navigating to console then Add Project(name it anything appropriate) then Continue.
On next step you can keep Google Analytics for your Firebase project enabled(I prefer it disabled).
Create project.
After creation, Select add android app by pressing android logo
Register app by adding package name. Your package name is generally the applicationId in your app-level build.gradle file. (project-directory/android/app/build.gradle)
Download google-services.json and add to app/ directory.
Follow further instructions.
Continue and then try to run. You may need to enable firebase services implicitly.
P.S: If you face issues afterwards point to the Github repo if it's public.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have an application that has a remote database(firebase) and local database(room). I get my data from firebase and save it in android room. Also, I use rxjava2 to do that. All posts is get from local database. Everything is okey until here. When I put new child to firebase, it doesnt appear in my application instantly. It is not put in local db. I know that I have to update my remote database every time such as every six hours. I had some researxch to do that. Work Manager and JobScheduler can be used but I dont know how to use that. Is there anyone that give me an advise?
WorkManager, part of Jetpack, is a library by Google, that handle deferrable work that requires a guaranteed execution.
You can read this blog to see if it covers your requirements. The documentation is an excellent starting point and there's a codelab that you can do to try the library itself available both in Java and Kotlin.
WorkManager uses JobScheduler when it runs on API Level 23+, for older Android versions (WorkManager supports API Level 14+) it uses AlarmManager and Broadcast receivers.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am setting up a project in Firebase.
It will use:
Authentication, to authenticate users
Hosting for main html/js functions
Storage for app data files
Database for a small db
What I am currently missing is the availablity of a backoffice space into which I need to run python scripts that will gather files to save into Storage area with a cronjob.
Is this currently possible in Firebase, or am I missing something?
Firebase doesn't have a generalized backend solution for running arbitrary code. You can bring whatever backend you want that meets your needs.
If you want to stay in the Google ecosystem, look into using Cloud Functions to run python code that's triggered by events in your system. You can configure Cloud Scheduler to trigger a function periodically.
The Firebase tools built around Cloud Functions don't support python, only nodejs.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want some more insights into my wordpress site so I signed up for a New Relic account. But they're asking me to install some agent by typing in commands and I have no idea where to do that or how to access a command line.
I use shared hosting with Bluehost so I have access to cPanel. I've never typed anything into a console to manage the server - the icons have covered everything I need. So far.
Is it even possible to install this on my shared hosting plan? If so, where do I get the command prompt, do I need FTP? I've tried to follow the instructions, but there're some strange words like "yum", "rpm" and what not. What are these, and how do I run them?
Is there a wordpress plugin that I can just install and have everything done automatically for me?
If anyone could point me to some clear step by step instructions as to how to go about this, I'd be very grateful...
Thanks!
What you need is shell access. According to their features page at http://www.bluehost.com/cgi/info/hosting_features, they support shell access via SecureShell (SSH). This is fairly common.
Download an SSH client like PutTTY and connect to yourdomain.com, or if you are on a Mac, open the Terminal app and type "ssh yourdomain.com" (with your web site's domain name). You can then run commands.
However, this probably will not get you what you need. You mentioned yum and rpm commands, which are system-level software installation tools. You'll need root access to do that, which you certainly cannot do on a shared hosting account.
These types of tools are really intended for application service providers. I'm fairly familiar with New Relic's products. I'm guessing you are trying to install the server monitor tool. You probably don't need to worry about that one since Bluehost should be monitoring their servers for you.