並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 126件

新着順 人気順

uwsgiの検索結果1 - 40 件 / 126件

  • 便利で超強力なWSGIサーバー uWSGI を使ってみよう - 檜山正幸のキマイラ飼育記 (はてなBlog)

    「Nginxをダウンタイム・ゼロで入れ替える方法」で書いたように、/usr/local/nginx/ のNginxを version 1.0.13 に更新しました。これとは別に、catyというユーザーアカウントのホームディレクトリ内にNginxをインストールして、Nginx+uWSGIとCatyの実験をしようとしています。 Nginx+uWSGIは、Catyに限らず一般的なWSGIアプリケーションを稼働させる良い環境を提供します。簡単に紹介しましょう。 内容: WSGIとuWSGI なぜ Nginx+uWSGI にしたのか uWSGIについて少し インストール とりあえず動かしてみる ソレナリに動かしてみる プロセスの制御など WSGIとuWSGI WSGI(Web Server Gateway Interface)*1は、Pythonで書かれたWebアプリケーションとアプリケーションサー

      便利で超強力なWSGIサーバー uWSGI を使ってみよう - 檜山正幸のキマイラ飼育記 (はてなBlog)
    • Oracle無料ティアでDjango+Nginx+uWSGIでサーバを立ててみる - Qiita

      Oracle Cloudで常時無料サービスが開始されたので使ってみた。 構成は、Django+nginx+uWSGI+Oracle Database+Oracle Linux 以下の3つの環境を作ってみたので、その時の備忘録。 ローカルの開発環境 ローカルでDockerを使った開発環境 コンピュート・インスタンスでの本番環境 とりあえず、Djangoの雛形アプリにアクセスできるまでの簡易なので、 SSL対応などは省いてます。 Oracle Cloudの常時無料サービス(無料ティア)について 新しく常時無料で利用できるようになったサービスたち。 ・Oracle Cloud無償ティア | オラクル | Oracle 日本 利用できるのは、以下のようなもの。 データベース ... 20GBを2つまで コンピュート ... 仮想マシン。1/8 OCPU・1GBを2つまで ストレージ ... 合計1

        Oracle無料ティアでDjango+Nginx+uWSGIでサーバを立ててみる - Qiita
      • ちゃんと運用するときのuWSGI設定メモ - Qiita

        某アプリのバックエンドをFlask+uWSGI+Nginxでつくったのでやったことまとめました。 Nginxとの連携 wsgiプロトコルで繋げる方法

          ちゃんと運用するときのuWSGI設定メモ - Qiita
        • uwsgi-docker-pycon2015

          20240906_JAWS_Yamanashi_#1_leap_beyond_the_AWS_all_certifications

            uwsgi-docker-pycon2015
          • Python+uWSGI+Dockerで環境に応じてuwsgiプロセス/スレッド数を動的変更する - Qiita

            はじめに PythonのWEBサーバを使ってる方には馴染みのuWSGIですが、Python+uWSGI+Docker環境を使っていると、マシンやコンテナスペックを変更したくなってくる場面があり、uWSGIの設定値も動的変更したくなりますよね。 ここでは現在本番稼働をしているPython+uWSGI+Docker環境で使用しているプロセス/スレッド数の動的変更方法を記載します。 動作環境 Django 3.0 uwsgi 2.0.17 Docker Image(python:3.6.5-alpine3.6) uWSGIの特徴 uWSGIの特徴として以下の特徴がありました。 uWSGIの設定値は.iniファイルで流し込むことができる uWSGIの.iniファイルには環境変数を流し込むことができる この特徴を使って.iniファイルを変更します。 前準備 app.iniには以下の内容で設定ファイル

              Python+uWSGI+Dockerで環境に応じてuwsgiプロセス/スレッド数を動的変更する - Qiita
            • uWSGI

              Note The project is in maintenance mode (only bugfixes and updates for new languages apis). Do not expect quick answers on github issues and/or pull requests (sorry for that) A big thanks to all of the users and contributors since 2009. The uWSGI project¶ The uWSGI project aims at developing a full stack for building hosting services. Application servers (for various programming languages and prot

              • Ubuntu 14.04 LTSでvenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作る - But we cannot cling to the old dreams anymore

                Ubuntu 14.04 LTSでvenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作る 2014-04-20 | tags: python, flask, nginx, uwsgi, ubuntu, -- (permalink) Ubuntu 12.04でpyenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作る この14.04版ではpyenv依存をやめてvenvだけを使うようにしています。 登場人物 ぼく 去年まで女子校だった私立高校に通う普通の高校生。人間が嫌い。これ以降登場しない。 Ubuntu Linuxらしいが、よく知らない。 venv Pythonの実行環境を切り替えるやつ。標準でついてくるようになったらしいが、よく知らない。

                  Ubuntu 14.04 LTSでvenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作る - But we cannot cling to the old dreams anymore
                • Starman vs. uWSGI: PSGI server performance comparison | bitrate

                  This benchmark is about Perl PSGI web application servers but the story starts with Python. I needed to deploy a Python based web application on a server running�nginx. I was not fully up to date about the current WSGI application server offerings and therefore searched for some comparisons. I found a comprehensive WSGI server benchmark�by Nicholas Pi�l�which was very interesting, although slightl

                  • Flask+uwsgi+nginxの環境が作りたい?それ、Dockerなら1コマンドで出来るよ。 - Qiita

                    $ python run.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) Flaskの公式ドキュメント http://flask.pocoo.org/docs/1.0/quickstart/ には This launches a very simple builtin server, which is good enough for testing but probably not what you want to use in production. For deployment options see Deployment Options. 開発用サーバはテスト用には十分だけど、本番環境では非推奨って書いてあるので、Dockerを使って楽をしようと思った。 TL;DR https://github.com/lb

                      Flask+uwsgi+nginxの環境が作りたい?それ、Dockerなら1コマンドで出来るよ。 - Qiita
                    • Flask + uWSGI + Nginx でハローワールドするまで @ さくらのVPS (CentOS 6.6) - Qiita

                      前提 Flaskアプリケーションのローカル環境での開発方法は知っていて、本番環境でのdeploymentの方法が知りたい。uWSGIやNginxについてはあまり知らない。 概略 Flaskの公式によると You can use the builtin server during development, but you should use a full deployment option for production applications. とのことなので、アプリを公開するには組み込みサーバーの利用はせずに、別の方法を考える必要があるらしい。様々な方法があるようだが、ここではuWSGIとNginxという組合せで進める。 まず、基本的な言葉の整理からおこなう。 uWSGIは、WSGIと名前は似ているが異なる概念であることに注意する。 WSGI(Web Server Gateway In

                        Flask + uWSGI + Nginx でハローワールドするまで @ さくらのVPS (CentOS 6.6) - Qiita
                      • Python+uWSGI+nginx+flaskを試してみる - Make Local Happiness

                        PythonでAPIを開発できる環境を作りたかったので、 色々試してみました。 いつもはPHPを使っていたので、webサーバはお手軽にApacheを使っていたのですが、 業務ではデータ分析をしているため、 今後はPythonを使う予定なので、さっそくPythonのwebサーバを作っていきたいと思います。 Pythonをwebから使う際には以下のようなサーバがあるのですが、 uWSGIが良いとのブログを発見したのでやってみます。 Python を Web 上で使うには SimpleHTTPServer Apacheでmod_python FastCGI WSGI 便利で超強力なWSGIサーバー uWSGI を使ってみよう こちらの記事を参照したのですが、 難しい内容なので、そこまで理解してませんので、 詳しくは檜山正幸のキマイラ飼育記のブログをみてください。 とりあえず、webサーバはNgi

                          Python+uWSGI+nginx+flaskを試してみる - Make Local Happiness
                        • Python Flaskアプリを nginx + uWSGI 環境下へデプロイしたのでメモ

                          超簡単。 $ pip install uwsgi 以上w! インストールはさくっとできたので、動かしてみる。ドキュメントを参考に、簡単なFlaskアプリを書いて試す。 [python] #!/usr/bin/env python # examle.py from flask import Flask app = Flask(__name__) @app.route(‘/’) def index(): return "<span style=’color:red’>I am app 1</span>" [/python]

                            Python Flaskアプリを nginx + uWSGI 環境下へデプロイしたのでメモ
                          • nginx + uWSGI + Flaskを試してみる - Reinvention of the Wheel

                            nginxという軽量Webサーバの話を最近よく耳にするので、とりあえず試してみますヨ とりあえずnginx上でFlaskアプリを動かすのを最終目標にゴニョゴニョしてみますデス まずnginxをインストール まずはnginx本体のインストールをしてみますよ→nginx ここを参考に作業したらあっさり動きました。 とりあえず手順を羅列していきます # 最新版の0.8.54をダウンロード $ wget http://sysoev.ru/nginx/nginx-0.8.54.tar.gz # nginx実行ユーザを作成 sudo useradd -s /sbin/nologin -d /usr/local/nginx -M nginxコンパイルオプションが豊富なのでスクリプト形式で保存しておきます # 参考サイトのものを参考に作成しました #!/bin/sh NGINX=nginx-0.8.54

                              nginx + uWSGI + Flaskを試してみる - Reinvention of the Wheel
                            • CentOSでnginx + uwsgi + Djangoを試してみた – taichino.com

                              最近GAE上で書いていたサイトが、ちょっとGAEには向かないという事がわかりまして、仕方が無いので、普通のサーバ上で書き直す事にしました。巷ではapache + mod_pythonはもう古いらしく、じゃあ何が良いのと思って色々調べていると、このベンチマークエントリが見つかりまして、その中で良さそうだったuwsgiを使う事にしました。HTTPサーバは上記エントリで使われてたnginxです。ずっと気になっていたのでこの機会に触ってみました。なお環境はCentOS 5.5です。 思ったよりも長い記事になってしまいました。以下の手順を踏みます。 Pythonのインストール virtualenvやDjangoのインストールとテストプロジェクト作成 uwsgiのインストール nginxのインストール・設定・動作確認 Djangoのadminアプリを動かす(おまけ) 1. Pythonのインストール

                              • 【PythonのAPサーバー比較!!】NGINX Unit 、uWSGI、Gunicornのベンチマークを比較してみた | DevelopersIO

                                【PythonのAPサーバー比較!!】NGINX Unit 、uWSGI、Gunicornのベンチマークを比較してみた 2018年4月に正式リリースされた軽量Web/APサーバーNGINX UnitでPythonのAPサーバーを構築し、他のメジャーなAPサーバーとベンチマークを比較してみました。 はじめに サーバーレス開発部@大阪の岩田です。 NGINX Unitを使ってDjango REST Frameworkのアプリを動かしてみたので、構築手順やGunicorn、uWSGIとのベンチマークの比較についてご紹介します。 NGINX Unitとは? NGINX UnitはNGINX社が開発した軽量Web/APサーバーです。 WebサーバーのNGINXはご存知の方も多いと思いますが、実はこんなミドルウェアもリリースされていたりします。 2018年4月に正式リリースされており、2018年9月現

                                  【PythonのAPサーバー比較!!】NGINX Unit 、uWSGI、Gunicornのベンチマークを比較してみた | DevelopersIO
                                • さくらのVPS + nginx + uWSGI + SupervisorでFlaskアプリケーションをデプロイしたメモ - sknkn3

                                  日記_2024.8.29 鞍馬と貴船 29日は鞍馬と貴船に行ってきました。こんな天気でバイクは無理、でも引きこもるのも嫌なので前々から行きたかった鞍馬と貴船に行くことにしました。ただ、いつ大雨が降っても全くおかしくないので天気がヤバそうなら帰ることにします。普通に日帰りできる距離ですから…

                                    さくらのVPS + nginx + uWSGI + SupervisorでFlaskアプリケーションをデプロイしたメモ - sknkn3
                                  • Multiple Django and Flask Sites with Nginx and uWSGI Emperor - tghw.com

                                    Posted May 16, 2012 I like Python, a lot. I'm one of those people who would use it all the time if they could, especially for web development. Which is convenient, since I'm currently working on my own company. One of the drawbacks of using Python, though, has always been getting it to play nicely with web servers. I've never been completely happy with the options out there: mod_python, mod_wsgi,

                                    • Ubuntu 12.04でpyenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作る - Qiita

                                      Ubuntu 12.04でpyenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作るPythonnginxUbuntuFlaskuwsgi 登場人物 ぼく 去年まで女子校だった私立高校に通う普通の高校生。人間が嫌い。これ以降登場しない。 Ubuntu Linuxらしいが、よく知らない。 pyenv Pythonのバージョンを切り替えるやつ。virtualenvとの連携で使い勝手が超いいらしいが、よく知らない。 Nginx Webサーバーらしいが、よく知らない。 uWSGI WSGIサーバーらしいが、何のことか分からない。そもそもWSGIを知らない。 Flask Webアプリケーションを気軽に作れる軽量のフレームワークらしいが、よく知らない。 pyenvの設定とPythonのインストール システムのPythonには指一本

                                        Ubuntu 12.04でpyenvを利用して速攻でPython3.4 + Nginx + uWSGI + FlaskなWebアプリケーション実行環境を作る - Qiita
                                      • CentOS6.5でPython3.4+Nginx+uWSGIでバーチャルホスト運用 - Life is Really Short, Have Your Life!!

                                        とりあえずなんとか動きましたって感じで... 以下Vagrant上での作業です。細かい所はあとで。 Python3.4を入れる $ sudo rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm $ sudo yum install python34u.x86_64 python34u.x86_64_devel develはuWSGIを入れる時に必要です。pipとsetuptoolは自動的に入ります。 uWSGIをインストール $ sudo pip3 install uwsgi システム全体で同じuWSGIを使うため、virtualvenv等を利用せずグローバルに入れます。 Nginxをインストール 現時点で安定版の最新が1.6

                                          CentOS6.5でPython3.4+Nginx+uWSGIでバーチャルホスト運用 - Life is Really Short, Have Your Life!!
                                        • アプリケーションコンテナ uWSGIを試してみた — sklave

                                          このベンチマークで気になったアプリケーションコンテナuWSGIを試してみた。 uWSGIは独自のプロトコルでフロントエンドのWebサーバと通信するアプリケーションコンテナで、中身はPythonをメインターゲットにしているが、Perl, Erlang, Ruby(開発中)も動かせるらしい。独自プロトコルということで、Webサーバ側にもプラグインがいるが、nginxは0.8.40以上だったら組み込まれている。 気になった背景に、いままでWebサービスはnginx <-- [HTTP] --> pythonという組み合わせで使うことが多かったのだけれども、nginxのReverse Proxyが持続的接続をサポートしてなかったりしてイマイチだった。HTTPの代わりとなるとFastCGIかな、というところなのだが、python側のflupsがあんまり速くないなぁという印象。どうなんだろう。みんなど

                                          • Big Sky :: Go言語でuWSGIリスナ書いた。

                                            最近はクラウドサーバ等、割と色んな所で見かける様になったuWSGIですが... uWSGI uWSGI is a fast, self-healing and developer/sysadmin-friendly application container server coded in pure C. http://projects.unbit.it/uwsgi/ Perlだとhirataraさんが書いた記事や Hokkaido.pmでuWSGIについてLTした - a geek born in Tomakomai uWSGI はデフォルトではhttpではなくuwsgiプロトコルを喋るので、uwsgiプロトコルを喋れるフロントエンドを立ち上げます... http://d.hatena.ne.jp/hiratara/20110718/1310950381 Plack::App::uWSG

                                              Big Sky :: Go言語でuWSGIリスナ書いた。
                                            • uWSGI入門 - Python学習講座

                                              PythonでWebアプリケーションを作成した後サーバー上で稼働させる場合、アプリケーションサーバが必要となります。(開発時は組み込みのサーバーで十分ですが、本番で使用することは推奨されていません。)ここではPythonでよく使われるuWSGIというアプリケーションサーバについて学習しましょう。 uWSGIとは WSGIとは uWSGIについて学習する前に、WSGIについて学習しましょう。WSGI(Web Server Gateway Interface) とは、PythonのWebアプリケーションとWebサーバー間とのやり取りの規約、プロトコールのことでPEP333で定義されています。 https://www.python.org/dev/peps/pep-3333/ Pythonの大抵のWebフレームワークはこのWSGIという規約に則っています。有名どころとして以下のフレームワークが挙

                                              • Hokkaido.pmでuWSGIについてLTした - Pixel Pedals of Tomakomai

                                                Hokkaido.pm でuWSGIについて話してきました。uWSGIは Nginx や Cherokee でも標準対応がされ初めており、今後の発展が期待されるアプリケーションサーバです。スライドは以下です。 ウヰスキーとPSGI View more presentations from hiratara デモがメインだったので、デモの手順についても書いておきます。 まず、uWSGI はデフォルトではhttpではなくuwsgiプロトコルを喋るので、uwsgiプロトコルを喋れるフロントエンドを立ち上げます。Plack::App::uWSGI は、いちいちnginxとかをセットアップするのが面倒だったので自分で書いたPSGIサーバで動かせるuwsgiのフロントエンドで、githubにだけ上げてます。uWSGIにpsgiプラグインを実行させるためのmodifier1である"5"は、現状ではfas

                                                  Hokkaido.pmでuWSGIについてLTした - Pixel Pedals of Tomakomai
                                                • Apacheにかわるwebサーバ: uWSGIパフォーマンスチューニング - Qiita

                                                  背景 PythonとDjangoでソマートフォンゲームのアプリケーションサーバを開発しており、そのwebサーバとしてuWSGIを使っています。 uWSGIには多くのパラメータがありすぎてどれを選んでいいかわかりにくいです。 実際に負荷試験をして、各種パラメータを変え、安定的にパフォーマンスが出せるようになったので、 そのときにどのように計測して、どのパラメータを変えたのかを共有したいと思います。 環境 python: 2.7.10 uWSGI: 2.0.11.1 locust: 負荷試験のツールです。ユーザシナリオを作ってアプリケーションサーバの各種API負荷試験をしました。 EC2: c4.2xlargeの8コア 性能測定ツール という言葉がありますが、何をおいても計測できなければ改善したかどうかわかりません。 主に以下のツールが今回役立ちました。 NewRelic: おなじみですね。有

                                                    Apacheにかわるwebサーバ: uWSGIパフォーマンスチューニング - Qiita
                                                  • Serializing accept(), AKA Thundering Herd, AKA the Zeeg Problem — uWSGI 2.0 documentation

                                                    After having forked itself a bunch of times, each process will generally start blocking on accept() The funny problem is that on older/classic UNIX, accept() is woken up in each process blocked on it whenever a connection is attempted on the socket. Only one of those processes will be able to truly accept the connection, the others will get a boring EAGAIN. This results in a vast number of wasted

                                                    • PHP-FPMとuWSGI——mod_php以外の選択肢を探る

                                                      1. PHP-FPMとuWSGI ̶̶ mod_php以外の選択肢を探る hnw 第66回PHP勉強会(2013/03/27) 発表資料 13年3月29日金曜日 2. 自己紹介 @hnw / id:hnw 勤務先:KLab株式会社 カレーとバグが大好物 宣伝:php-timecopというPHP拡張を作りました https://github.com/hnw/php-timecop 13年3月29日金曜日

                                                        PHP-FPMとuWSGI——mod_php以外の選択肢を探る
                                                      • 【Python】Flaskの本番環境構築(Flask + uWSGI + Nginx) - 7839

                                                        前回の記事で、PythonのWebアプリケーションフレームワークであるFlaskでHello Worldをローカル開発環境で確認するまでを紹介した。 serip39.hatenablog.com 今回、Raspberry Pi 3 Model B 上にWebサーバーを構築して、FlaskのWebアプリケーションを本番環境に公開するまでを紹介する。 Flaskの本番環境に関して This launches a very simple builtin server, which is good enough for testing but probably not what you want to use in production. Flask公式 Flaskには組み込みサーバーがあり、特別な環境構築を行うことなく、Webサーバーを立ち上げることができる。ただし、この組み込みサーバーを本番環

                                                          【Python】Flaskの本番環境構築(Flask + uWSGI + Nginx) - 7839
                                                        • The uWSGI project — uWSGI 2.0 documentation

                                                          The uWSGI project¶ The uWSGI project aims at developing a full stack for building hosting services. Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style. Thanks to its pluggable architecture it can be extended to support more platforms and languages. Currently, you can w

                                                          • Nginx + uwsgi で Trac環境を作った時のメモ

                                                            ここ数日の間に、Trac環境を作ることになったのですが、 Apache + mod_python のスタンダード(?)な構成ではなく、 Nginx + uwsgi の組み合わせでやってみたので今回はそのメモを書いておきます。 TracのインストールOSはUbuntu11.10 Server 64bitで 全体的に新しめな環境で行いましたが、Tracのインストール自体は至ってスタンダードでした。 まずは必要なパッケージをaptとeasy_installでインストール。 □ laughk@ubuntu -------------------------------- sudo aptitude install vim unzip nginx uwsgi uwsgi-plugin-python subversion easy_install sqlite3 sudo easy_install b

                                                            • CentOS7 + nginx + uWSGI + Flask - Qiita

                                                              yum install epel-release sed -ri 's/^enabled.*=.*1$/enabled = 0/g' /etc/yum.repos.d/epel.repo yum install nginx --enablerepo=epel vi /etc/nginx/nginx.conf user nginx; worker_processes 1; error_log /var/log/nginx/error.log; pid /run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user

                                                                CentOS7 + nginx + uWSGI + Flask - Qiita
                                                              • uWSGI vs. Gunicorn, or How to Make Python Go Faster than Node : Blog – @kgriffs

                                                                Slow Website? Check out Luhnar for an easy way to speed up your client's Django, WordPress, or other CMS-based or custom site. www.luhnar.com It seems I’ve finally arrived at the end of my quest to discover a fast, reliable Python stack for serving web APIs that can compete favorably with Node. The funny thing is, I didn’t even know it was my quest until I started looking at the surprising results

                                                                • uWSGI の spare2 cheaper algorithm を作った - Qiita

                                                                  [uwsgi] ... processes=10 cheaper-algo=spare2 cheaper=2 cheaper-initial=2 cheaper-step=2 cheaper-idle=30 process=10 は最大ワーカープロセス数です。 cheaper=2 が最小プロセス数になり、この間で調整されることになります。 cheaper-initial=2 が起動直後のワーカー数になります。 spare2 アルゴリズムは、 cheaper で指定された数の idle 状態のワーカー数を維持しようとします。 例えば idle 状態のワーカー数が 1 つになった場合、 2 - 1 = 1 個のワーカーを起動します。 cheaper-step=2 は一度に起動するプロセス数の上限です。 cheaper が大きいときに、 cheaper-step であまりたくさんのプロセスを一気

                                                                    uWSGI の spare2 cheaper algorithm を作った - Qiita
                                                                  • EC2上で Django + Nginx + uWSGI を試す - Qiita

                                                                    概要 EC2インスタンスにNginxとuWSGIをつかってDjangoアプリケーションをデプロイするときのメモ。 環境構築 ec2インスタンスに入って環境を構築する。 sudo apt-get update sudo apt-get -y upgrade # もろもろインストールする sudo apt-get -y install python-dev python-pip nginx # pipでもろもろインストールする sudo pip install -U pip pip install django uwsgi

                                                                      EC2上で Django + Nginx + uWSGI を試す - Qiita
                                                                    • bottle+uWSGI+python3+nginxでアプリを動かす

                                                                      24 Feb 2015 最近bottleに興味持っていまして、今回はbottle、uWSGI、nginx、Python3の構成でアプリを動かしてみたのでそのメモを残しておきます。 実行環境 Ubuntu 14.2 Python 3.4 uWSGI Nginx 手間なのでvirtualenvは利用せずに設定します。 なおサーバー環境はvagrantでまっさらなところから作っていきます。 環境構築 さくっと作ります。 vagrantでVM構築 ご存じのvagrant。既に環境がある方は読み飛ばしてください。 $ vagrant init ubuntu14 .... .... `vagrantup.com` for more information on using Vagrant. $ vagrant up .... .... ==> default: Checking for guest a

                                                                      • uWSGI

                                                                        Note The project is in maintenance mode (only bugfixes and updates for new languages apis). Do not expect quick answers on github issues and/or pull requests (sorry for that) A big thanks to all of the users and contributors since 2009. The uWSGI project¶ The uWSGI project aims at developing a full stack for building hosting services. Application servers (for various programming languages and prot

                                                                        • nginx + uwsgi でアプリケーションをサブディレクトリで動かす設定 - Qiita

                                                                          やりたいこと 複数のアプリケーションを、同一の virtualhost 内で動かす。 http://example.com/app1/hello にアクセスすると、 localhost の uwsgi で動いているアプリの /hello に飛ばすとか。 基礎知識 (多分CGI由来の) 3つの重要な変数を理解しましょう。 REQUEST_URI が、ユーザーがアクセスしたホスト名以降のパスです。 SCRIPT_NAME が、アプリが動いている場所です。 CGI だったら .cgi とか php だったら .php とか拡張子があったりします。 PATH_INFO が、 SCRIPT_NAME 以降のパスです。アプリのURLディスパッチャはこの変数を見たりします。 この3つの変数がきちんと設定できていないと、URLディスパッチやリダイレクトが上手く動かない事になります。 デフォルトで用意されて

                                                                            nginx + uwsgi でアプリケーションをサブディレクトリで動かす設定 - Qiita
                                                                          • Docker-Composeで作るDjango開発環境(Django + MySQL + uWSGI + Nginx) - moto blog

                                                                            Django(Django + Postgre)の開発環境は、下記のQuickstartに記載されている通りに進めれば、構築することができます。 今回は、これを応用して、Django + MySQL + uWSGI + Nginxで環境構築します。 docs.docker.com 環境 項目 Version Docker 18.03.1-ce, build 9ee9f40 Docker-Compose 1.21.1, build 5a3f1a3 Python 3.6 Django 2.04 MySQL 5.7 Nginx 1.13 PyMySQL 0.8.0 uWSGI 2.0.17 プロジェクトフォルダ構成 docker-compose.yml docker-compose.ymlの全体の定義は以下の様になります。 Django環境設定 Dockerfile コンテナ生成のための設定を行

                                                                              Docker-Composeで作るDjango開発環境(Django + MySQL + uWSGI + Nginx) - moto blog
                                                                            • fcgi vs. gunicorn vs. uWSGI - Peterbe.com

                                                                              uwsgi is the latest and greatest WSGI server and promising to be the fastest possible way to run Nginx + Django. Proof here But! Is it that simple? Especially if you're involving Django herself. So I set out to benchmark good old threaded fcgi and gunicorn and then with a source compiled nginx with the uwsgi module baked in I also benchmarked uwsgi. The first mistake I did was testing a Django vie

                                                                              • DockerでPython+uWSGI+Nginxの環境を作成 - Qiita

                                                                                #DockerでPython3.5で作成したWebアプリケーションの検証用環境を作成 PythonでWebアプリケーションを作成することはほんとんどなかった。ノンブロッキングI/Oの(node.jsやGolangとの比較検証等を考慮した)動作検証をする際にWebアプリケーションとして用意したかったので、その際、Docker for Macで簡単な環境を構築したので備忘録として記載。 Docker ComposeでPython3.5+uWSGI+Nginxの動作環境用のコンテナを用意した。 余談だが、uWSGIは「ウエスギ」という読み方が一般化しているようだ。「ユーウイスキー」と読んでいた。 ##Docker for Macのインストール Docker for Macを利用した。ここからDocker for Macをダウンロードして、Macにインストールする。 ##Docker Compos

                                                                                  DockerでPython+uWSGI+Nginxの環境を作成 - Qiita
                                                                                • How To Deploy Flask Web Applications Using uWSGI Behind Nginx on CentOS 6.4 | DigitalOcean

                                                                                  Status: Deprecated This article covers a version of CentOS that is no longer supported. If you are currently operating a server running CentOS 6, we highly recommend upgrading or migrating to a supported version of CentOS. Reason: CentOS 6 reached end of life (EOL) on November 30th, 2020 and no longer receives security patches or updates. For this reason, this guide is no longer maintained. See In

                                                                                    How To Deploy Flask Web Applications Using uWSGI Behind Nginx on CentOS 6.4 | DigitalOcean