Coder Social home page Coder Social logo

uwsgi-init-script's Introduction

uWSGI init script

why

Wanted to host in the same machine python2.5 and python2.7 projects.

usage

usage for uwsgi-2.5:

uwsgi-2.5 {start|stop|restart|reload|force-reload|status} [CONFIG]...

examples

  • Starting all 2.5 configs: /etc/init.d/uwsgi-2.5 start
  • Reload example.yml: /etc/init.d/uwsgi-2.7 reload example.yml

deploy

Example for a deploy using uwsgi compiled with python 2.5 and 2.7 (assuming you already have them installed on your system):

# install uwsgi-2.5 and uwsgi-2.7
easy_install-2.7 uwsgi
mv /usr/local/bin/uwsgi /usr/local/bin/uwsgi-2.7
easy_install-2.5 uwsgi
mv /usr/bin/uwsgi /usr/local/bin/uwsgi-2.5
# deploy init scripts
mv uwsgi.init /etc/init.d/uwsgi
ln -s /etc/init.d/uwsgi /etc/init.d/uwsgi-2.7
ln -s /etc/init.d/uwsgi /etc/init.d/uwsgi-2.5
# create config folder structure
mkdir -p /etc/uwsgi/uwsgi-2.{5,7}/sites-{available,enabled}

uWSGI config files will be read from the sites-enabled folder.

bash completion

Just source uwsgi.bash_completion or, better yet, copy it to /etc/bash_completion.d/ (make sure you have bash_completion enabled).

uwsgi-init-script's People

Contributors

pharaujo avatar

Watchers

Kravchenko Ivan avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.