Forums

Running a Bottle App

Hello,

This might be a useless question for you but i wrote an application 1.5 years ago and run it from here. But when i try that code today I cant run it. I searched a bit but i am still not sure how to fix it.

I have a line like this

@route('/') def i(): return "H1c7 World"
run(host='localhost', port=8080)

But probably i should not use "run" command. But i couldnt learn what i use.

Hi,

I think you need to go the Web tab, create a new Bottle app in there, and then copy your code accross (minus the run bit).

Thanks,

Robert

yup. You should take out the run command. Also, perhaps start a bottle app (instead of a custom one) so you get working app, and then change the app bit by bit from there (making sure that everything works after reloading)?

Thanks,

Instead run command i just leave following line there and it works.

application = default_app()

Yup, that should work fine.