librelist archives

« back to archive

running flask app in Ubuntu?

running flask app in Ubuntu?

From:
Kundan Singh
Date:
2013-05-04 @ 00:55
I have successfully build a flask app on my Windows 7 64 bit machine on
localhost. But i want to deploy it on a Ubuntu 12.10 x32 Server on
DigitalOcean. I have NginX, MySQL, Python 2.7.3 installed on Ubuntu Machine.

Now need some tutorial/tips to start deploying the flask app on Ubuntu?

There are some quick google search tutorials out there but i need to deploy
my app with best practices/configuration. Its a project i have to release
to public, so need to have best configuration for app.

Any tuts available/you recommend?

-Kundan Singh

Re: [flask] running flask app in Ubuntu?

From:
薛 鹏飞
Date:
2013-05-04 @ 15:22
try uwsgi/gunicorn + supervisor, it's our production environment


--
Sincerely,
Pengfei Xue
https://life-map.rhcloud.com

在 2013-5-4,上午8:55,Kundan Singh <ksingh.pilani@gmail.com> 写道:

> I have successfully build a flask app on my Windows 7 64 bit machine on 
localhost. But i want to deploy it on a Ubuntu 12.10 x32 Server on 
DigitalOcean. I have NginX, MySQL, Python 2.7.3 installed on Ubuntu 
Machine.
> 
> Now need some tutorial/tips to start deploying the flask app on Ubuntu?
> 
> There are some quick google search tutorials out there but i need to 
deploy my app with best practices/configuration. Its a project i have to 
release to public, so need to have best configuration for app.
>  
> Any tuts available/you recommend?
> 
> -Kundan Singh

Re: [flask] running flask app in Ubuntu?

From:
Raj Nathani
Date:
2013-05-04 @ 01:24
Alright so you have nginx as your webserver and flask as your app server, 
what's recommended now is a middleware. uWSGI and gunicorn are good 
considerations here.

With regards to deploying on Ubuntu, I would say its not as daunting as it
seems. Concentrate on becoming more familiar with nginx and uwsgi 
configurations.

Since you are SSHing into your server, you will only have access to the 
terminal. Leaning basic to intermediate shell programming is pretty 
essential here.

- Raj

Sent from my iPhone


On 2013-05-03, at 8:56 PM, "Kundan Singh" <ksingh.pilani@gmail.com> wrote:

> I have successfully build a flask app on my Windows 7 64 bit machine on 
localhost. But i want to deploy it on a Ubuntu 12.10 x32 Server on 
DigitalOcean. I have NginX, MySQL, Python 2.7.3 installed on Ubuntu 
Machine.
> 
> Now need some tutorial/tips to start deploying the flask app on Ubuntu?
> 
> There are some quick google search tutorials out there but i need to 
deploy my app with best practices/configuration. Its a project i have to 
release to public, so need to have best configuration for app.
>  
> Any tuts available/you recommend?
> 
> -Kundan Singh

Re: [flask] running flask app in Ubuntu?

From:
dorian i
Date:
2013-05-04 @ 01:44
Have you seen this:

http://flask.pocoo.org/docs/deploying/uwsgi/


On Sat, May 4, 2013 at 3:24 AM, Raj Nathani <raj_n19@hotmail.com> wrote:

> Alright so you have nginx as your webserver and flask as your app server,
> what's recommended now is a middleware. uWSGI and gunicorn are good
> considerations here.
>
> With regards to deploying on Ubuntu, I would say its not as daunting as it
> seems. Concentrate on becoming more familiar with nginx and uwsgi
> configurations.
>
> Since you are SSHing into your server, you will only have access to the
> terminal. Leaning basic to intermediate shell programming is pretty
> essential here.
>
> - Raj
>
> Sent from my iPhone
>
>
> On 2013-05-03, at 8:56 PM, "Kundan Singh" <ksingh.pilani@gmail.com> wrote:
>
> > I have successfully build a flask app on my Windows 7 64 bit machine on
> localhost. But i want to deploy it on a Ubuntu 12.10 x32 Server on
> DigitalOcean. I have NginX, MySQL, Python 2.7.3 installed on Ubuntu Machine.
> >
> > Now need some tutorial/tips to start deploying the flask app on Ubuntu?
> >
> > There are some quick google search tutorials out there but i need to
> deploy my app with best practices/configuration. Its a project i have to
> release to public, so need to have best configuration for app.
> >
> > Any tuts available/you recommend?
> >
> > -Kundan Singh
>

Re: [flask] running flask app in Ubuntu?

From:
Mark Steve Samson
Date:
2013-05-04 @ 02:32
You might also want to check circus for process management :)


On Sat, May 4, 2013 at 9:44 AM, dorian i <dorian.hoxha@gmail.com> wrote:

> Have you seen this:
>
> http://flask.pocoo.org/docs/deploying/uwsgi/
>
>
> On Sat, May 4, 2013 at 3:24 AM, Raj Nathani <raj_n19@hotmail.com> wrote:
>
>> Alright so you have nginx as your webserver and flask as your app server,
>> what's recommended now is a middleware. uWSGI and gunicorn are good
>> considerations here.
>>
>> With regards to deploying on Ubuntu, I would say its not as daunting as
>> it seems. Concentrate on becoming more familiar with nginx and uwsgi
>> configurations.
>>
>> Since you are SSHing into your server, you will only have access to the
>> terminal. Leaning basic to intermediate shell programming is pretty
>> essential here.
>>
>> - Raj
>>
>> Sent from my iPhone
>>
>>
>> On 2013-05-03, at 8:56 PM, "Kundan Singh" <ksingh.pilani@gmail.com>
>> wrote:
>>
>> > I have successfully build a flask app on my Windows 7 64 bit machine on
>> localhost. But i want to deploy it on a Ubuntu 12.10 x32 Server on
>> DigitalOcean. I have NginX, MySQL, Python 2.7.3 installed on Ubuntu Machine.
>> >
>> > Now need some tutorial/tips to start deploying the flask app on Ubuntu?
>> >
>> > There are some quick google search tutorials out there but i need to
>> deploy my app with best practices/configuration. Its a project i have to
>> release to public, so need to have best configuration for app.
>> >
>> > Any tuts available/you recommend?
>> >
>> > -Kundan Singh
>>
>
>