JSConf.eu opening song - JavaScript Will Listen - Bella Morningstar
- Plask - Dean McNamee
- Plask
| #!/usr/bin/env ruby | |
| require "mail" | |
| require "optparse" | |
| imap_opts = { | |
| :address => "imap.gmail.com", | |
| :port => 993, | |
| :enable_ssl => true | |
| } | 
(a gist based on the old toolmantim article on setting up remote repos)
To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.
This is somewhat of a follow-up to the previous article setting up a new rails app with git.
Set up the new bare repo on the server:
| #! /bin/sh | |
| # ------------------------------------------------------------------------------ | |
| # SOME INFOS : fairly standard (debian) init script. | |
| # Note that node doesn't create a PID file (hence --make-pidfile) | |
| # has to be run in the background (hence --background) | |
| # and NOT as root (hence --chuid) | |
| # | |
| # MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
| # INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
| # INSTALL/REMOVE http://www.debian-administration.org/articles/28 | 
| #! /bin/sh | |
| # ------------------------------------------------------------------------------ | |
| # SOME INFOS : fairly standard (debian) init script. | |
| # Note that node doesn't create a PID file (hence --make-pidfile) | |
| # has to be run in the background (hence --background) | |
| # and NOT as root (hence --chuid) | |
| # | |
| # MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
| # INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
| # INSTALL/REMOVE http://www.debian-administration.org/articles/28 | 
| #!/bin/bash | |
| # nodejs - Startup script for node.js server | |
| # chkconfig: 35 85 15 | |
| # description: node is an event-based web server. | |
| # processname: node | |
| # server: /path/to/your/node/file.js | |
| # pidfile: /var/run/nodejs.pid | |
| # | 
| # node.js app under nginx | |
| upstream node { | |
| server 127.0.0.1:8001; | |
| } | |
| server { | |
| listen 80; | |
| server_name node; |