hgeg / spawn

a spawn-fcgi wrapper for handling web applications with ease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spawn

a spawn-fcgi wrapper that lets you smoothly handle your python-wsgi applications.

installation

install spawn-fcgi package first. then add the file named spawn to your path or make a symbolic link to your bin directory.

how to use

go to directory of your wsgi application and run the following command to initialize spawn:

spawn init -f <filepath> -p <port> 

This will create a config file named .spawn at current directory. Then, start your application by typing spawn start on this directory, or use -d <path> option. Your app must be an executable in order to be spawned.

Here is the list of all the commands with full options:

  • init -f <filepath> -p <port> [--onstart <path>] [--onstop <path>]: Create spawn configuration for the process.
  • start [-d <path>]: Start the process.
  • stop [-d <path>]: Stop the process.
  • reload [-d <path>]: Restart the process.
  • status [-d <path>]: Show spawn config.
  • clean: Remove spawn config.

About

a spawn-fcgi wrapper for handling web applications with ease

License:GNU General Public License v3.0


Languages

Language:Haskell 100.0%