Heroku deployment of Flask NLP Application - python

I deployed a Flask application on Heroku, I was able to deploy it via GitHub, however, when I am trying to run the app (Sentiment Analysis) I am getting an error, see the log:
I do not know how to add this command to the repository, should it be added to requeriments.txt or directly to the app.py - I am quite confused about how to fix this.
GitHub repository with the code: https://github.com/JaroslavKotrba/AppPredictionSentiment
Link to the app: https://apppredictionsentiment.herokuapp.com/

Related

code - h10- heroku after after deploying app

I have deployed fast API and selenium python script to Heroku. I have added the required buildpacks and config variable before deploying and tried everything but still, I get the error. The script runs perfectly on the local host, but I can't seem to run it on the Heroku server. Below are the image of log details and my code on Github. I really appreciate the help
ss of build logs
https://github.com/sus0001/kalimati_market-fastAPI

FASTAPI app not working with GCP APP engine

I am trying to deploy a fastAPI app with python 7 to the GCP app engine. After configuring the app.yaml file app is working fine with dev_server while using the command dev_server app.yaml. But after deploying the app using gcloud app deploy and followed by gcloud app browser I am getting an access URL.
After hitting the URL I am facing an error as below
Note - I am using a quick lab for learning the deployment. And things are working fine with flask app but not working with the FastApi app.
Since you already used the devapp_server command in order to test your application and it works, as a suggestion in order to check why you are facing this issue, you can try to see your App’s logs in the Developer Console from GCP.
Also, can be checked with the Logs Viewer and the console using the command line:
gcloud app logs tail
Check this documentation for further information about writing and viewing logs from your app.
Moreover I could find a tutorial about Deploying FastAPI in AppEngine. Maybe it could help you to develop it through this way also.

How to upload python modules on Heroku

I have Django app, which I deployed on Heroku.
All the modules were deployed whith requirements.txt and everything is ok
But I also have several classes which are made as modules in separate .py files. On local machine these modules are in ...\Python\Python38-32\Lib\site-packages\modules\ folder
Now I need to upload these modules to Heroku. But I don't know how to do it. Is there any file manager program for windows, which allows to connect to heroku server and upload these /modules/ folder to the site-packages directory?
I've tried to find such a program, but couldn't find anything
Deploy the app
In this step you will deploy the app to Heroku.
Create an app on Heroku, which prepares Heroku to receive your source code:
$ heroku create
When you create an app, a git remote (called heroku) is also created and associated with your local git repository.
Heroku generates a random name (in this case serene-caverns-82714) for your app, or you can pass a parameter to specify your own app name.
Now deploy your code:
$ git push heroku master
The application is now deployed. Ensure that at least one instance of the app is running:
$ heroku ps:scale web=1
Now visit the app at the URL generated by its app name. As a handy shortcut, you can open the website as follows:
$ heroku open

Google App Engine Django Standard Environment: Error: Server Error

I am trying to deploy the most simple Django 1.10.5 project into Google App Engine and am completely stumped.
Upon running gcloud app deploy I am getting the following error when navigating to /...
This is the file structure of my app...
This is my .yaml file...
This is my appengine_config.py file...
I am also getting the following errors in Google Dev Tools network tab...
I am pretty certain the problem lies within my app.yaml file and am very unclear as to what url and handler are doing in this code. Can anyone see what I am doing wrong?
You seem to be quite far off from getting your django based app running on GAE. For example you're missing the lib dir where your version of django should be installed. You may want to go through Running Django on App Engine standard environment
Take a look of GAE log page and search text "raise". If you see something like "sqlite3", the problem might be caused by the default content of DATABASES section in settings.py file. Commenting out this DATABASES section solved my problem("Error: Server Error" only when deployed to GAE; working fine locally).

I'm trying to deploy my django project to heroku. My app is not running the log shows error code 503

https://github.com/tony161293/hellodjango
This is my git repo link showing my sample code I'm trying to launch. The settings.py file was edited as per the documentation in Heroku django deployment. I'm trying to run my application. Is there any way to explicitly start my application after deployment?
Or any problem with the Procfile in the project..?
Can you do the following:
heroku logs --tail, then run heroku ps:restart in a new window. Copy all the logs output, and paste it so we can help you debug!

Categories