This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include required modules. | |
var net = require('net'); | |
var sys = require('sys'); | |
// Create a TCP server and listen on FastAGI port. | |
var server = net.createServer(); | |
server.listen(4573, '127.0.0.7'); | |
// Add a listener for new connections. | |
server.addListener('connection', fastAGI); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :sphinx do | |
desc 'make symlinks' | |
task :symlink do | |
run <<-CMD | |
if [ ! -d #{shared_path}/sphinx ]; then mkdir -p #{shared_path}/sphinx; fi; | |
rm -fr #{release_path}/db/sphinx && | |
ln -nfs #{shared_path}/sphinx #{release_path}/db/sphinx | |
CMD | |
end |