Skip to content

Instantly share code, notes, and snippets.

View UserAd's full-sized avatar

Konstantin Tumalevich UserAd

  • Almaty, Kazakhstan
View GitHub Profile
@UserAd
UserAd / fastagi.js
Created December 1, 2011 12:22 — forked from mheadd/fastagi.js
Node.js script to execute FastAGI application
// 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);
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