#Problem with heroku

108 messages Β· Page 1 of 1 (latest)

hearty bramble
#

Hi guys,
I'm new in the developper world and I tried to create my first app with flask in python.
I did it and now I'd like to deploy it on heroku but I'm facing problems in the final step.

I think I've made all is needed but I still have an "Application error" message on the webpage at the end.
You'll see the message and the logs bellow.

If someone can help me πŸ™‚

digital isle
#

@hearty bramble do you have a database in your app?

hearty bramble
#

Hello !

#

no

digital isle
#

alr

#

in heroku app it will be better if you creare the app manually

#

i have deployed a weboage successfuly using a method

#

what i do is i create the app manually

#

and then push my code on it

#

are you still stuck?

#

@hearty bramble

hearty bramble
#

yes tried it but it doesn't work

digital isle
#

tell me the steps ur doing @hearty bramble

#

here is what i recommend

#

create the app in heroku manually, then chose heroku git as a deployement method

#

in your terminal

#

be sure that u have the requirements and the Procfile

hearty bramble
#

That's what I did, and I have deployed my app

#

Yes I have them

digital isle
#

it says that your app is deployed

#

what is the issue then

hearty bramble
#

When i open it I have that

digital isle
#

are you sure you don't have any bugs in your app ?

hearty bramble
#

It works localy

#

I'm really stuck πŸ˜’

digital isle
#

i had a problem too when i was trying to push my app to heroku just because my flask app was named main

#

and the file too

hearty bramble
#

my app is named app

digital isle
#

i renamed the flask app to app and the file as well to app.py

hearty bramble
#

That's what I have

digital isle
#

would you mind to share the project with me

hearty bramble
digital isle
#

i will try to deploy it myself if its okay to you

hearty bramble
#

yeah no pb

digital isle
#

alr

hearty bramble
#

It's just a simple website

#

to practice and build my first app πŸ™‚

#

Thanks for your help ! πŸ™‚

digital isle
#

my laptop is kinda (actually alot) slow so gotta wait hhhh

hearty bramble
#

no pb

#

nothing urgent πŸ™‚

digital isle
#

mhm my 4Gb ram laptop can't handle the terminal for too long

#

lemme just tell you the steps

#

create the app manually and then try this commands (you will find them in your app in heroku)

#
heroku login
git init
heroku git:remote -a (heroku app name)
git add .
git commit -am "make it better"
git push heroku master
#

those steps worked to me

hearty bramble
#

when you say "create the app manually" you mean step by step in vs code ?

digital isle
#

no

#

in heroku

hearty bramble
#

ok

digital isle
#

and it will charge you

hearty bramble
#

so I delete it and try from scratch ?

digital isle
#

some cents

#

no

#

open herokuc

#

here create your app

#

it will ask for a credit card

#

it charges 0.010$ per hour

hearty bramble
#

to create the app I connect my github and then I just deploy the branch ?

digital isle
#

i don't use github deployments

hearty bramble
#

So I have to use Heroku Git ?

digital isle
#

yes

hearty bramble
#

I actually have no idea how it works 🀣

digital isle
#

it's easy

#

did you create the app ?

hearty bramble
#

yes, I'm here now

digital isle
#

follow those steps

#

except the second command

hearty bramble
#

I have to use the terminal on my mac and put those command line ?

digital isle
#

yes

hearty bramble
#

hum...

#

told you I'm new in this domain right ? 😁

digital isle
#

oh

#

did you download it

hearty bramble
#

ok good, just uninstall and install heroku

hearty bramble
digital isle
#

cd project

#

your already inside your project directory

hearty bramble
#

ok got it

#

git add . wants to access on everything, it's normal ? my contacts, photos, ...

digital isle
#

yes

#

it may take some time

hearty bramble
#

I have to allowed that ?

digital isle
#

what do you mean by contacts?

hearty bramble
#

the app contact with all the phone numbers, names of my contacts, ...

#

all my photos

digital isle
#

inside your file ?

hearty bramble
#

I said "git add ." and it ask the permission to access to all the files on my laptop, all my contacts, all my photos, ...

digital isle
#

πŸ’€

#

idk much about mac tbh

#

i use windows

hearty bramble
#

shit...

#

I said no to everything I considered unnecessary except that now I find myself stuck I have the impression πŸ˜…

digital isle
#

just give them the access

#

i don't think that would be dangerous

hearty bramble
#

ok i'll try that

#

But I think I'm gonna see that tomorrow now πŸ™‚

#

Thanks a lot for your help !

digital isle
#

alr buddy

hearty bramble
#

I will keep you informed !

digital isle
#

alr ping me then

hearty bramble
#

sure !

digital isle
#

it doesn't require any credit card