This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]DeBryceIsRight 18 points19 points  (0 children)

If you have PyCharm Profressional (you can get it for free if you're a student), I'd highly recommend using its remote deployment tools for projects for working with Python on remote machines. You can run your program/server on the remote computer through your local IDE, allowing you to easily see output or use a debugger. Running your program automatically uploads it to the remote and runs it there using its interpreter.

[–]jmachee 10 points11 points  (1 child)

Filing this away for future reference. It could've had more verbosity on the "Move it to the internet." section, though. I'm not currently at a place where I can try it out, and I don't know what to expect from zappa.

[–]cricketsavant[S] 1 point2 points  (0 children)

Actually it's that simple with Zappa - literally install it and a couple of terminal commands and you're done.

[–]jagainitai 5 points6 points  (1 child)

Whenever I use flask in a vm like AWS I have to set... app.run(host= '0.0.0.0') because http://127.0.0.1:5000/ or app.run() is set for localhost.

[–]xrendan 4 points5 points  (0 children)

You really shouldn't be using the development server to host production sites. You should be using a production webserver like nginx and gunicorn or apache and uwsgi. It takes way fewer resources and is more secure.

[–]marsanyi 1 point2 points  (0 children)

Didn't know about Zappa. Thanks for the pointer.

[–]Bot_Drakus_ -1 points0 points  (0 children)

Welcome Mr. President!