-
April 30, 2012
open the file /etc/supervisord.conf vi /etc/supervisord.conf Insert the following code: [program:node program] command = /usr/local/bin/node my_server.js user = nodejs directory = /path/to/node/dir/
-
April 26, 2012
if you run into a problem with django when using the syncdb command on Mac OSX, here is how to fix it: in your terminal, edit your .bash_profile, add the following lines:
-
April 19, 2012
Generate key on local machine First off, start by generating a ssh key on your local machine (if you dont already have one) ssh-keygen -t rsa Ensure that the remote server has a .ssh directory Make sure the server your connecting to has a .ssh directory in your home directory. If it doesn’t exist you [...]
-
April 19, 2012
Open git configuration file (normally located inside the .git directory, named confg) and add the following lines : [color] ui = auto [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = yellow bold frag = magenta bold old = red bold new = green bold [color "status"] added [...]
-
April 18, 2012
Here is a snippet for .gitignore to use with Drupal websites: sites/default/settings.php sites/default/files/imagecache .* !.htaccess !.gitignore This is useful in case you want to upload your data on every push. in some cases you might not want to have your files tracked, then you can use the following .gitignore file instead
-
April 18, 2012
Here is a little snippet to run nodejs server as a service description "Start Node.js server" start on runlevel [2345] stop on runlevel [06] respawn respawn limit 10 5 exec /usr/local/bin/node /path/to/node.js





Tip: Run Node.js program as a service using supervisord