1.To run unit test by classes parallel
2.To run unit test by methods in parallel
In the deployment of pyramid project, I don’t want to setup a separate process for each pyramid application. So it comes the requirement to deploy multiple application under one project.
Here’s an example configuration for a multiple app project. The project has 2 application, booksearch and mybackup. The configuration file syntax is the same as production.ini which is in paste deploy format. For interpretation of each section see: http://pythonpaste.org/deploy/#composite-applications
use = egg:Paste#urlmap
/ = home
/booksearch = booksearch
/mybackup = mybackup
use = egg:booksearch
use = egg:mybackup
use = egg:Paste#static
document_root = %(here)s/htdocs
use = egg:waitress#main
host = 127.0.0.1
port = 9090
You can run pserve to start the project:
Posted in python
Tagged howto, pyramid
Follow the tutorial on linode to install openvpn:
Both openvpn and dnsmasq shall be installed on the server.
And on the file /etc/openvpn/server.conf, the following line must be exist and not commented :
push “redirect-gateway def1″
By default the line is :
;push “redirect-gateway def1 bypass-dhcp”
The semi-colon should be removed, and “bypass-dhcp” should be removed too.
redirect-gateway option to configure the VPN as the default gateway (implemented on Linux and Windows only).
redirect-gateway bypass-dhcp option to add a route
allowing DHCP packets to bypass the tunnel, when the
DHCP server is non-local. Currently only implemented
on Windows clie