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
### Keybase proof | |
I hereby claim: | |
* I am waldher on github. | |
* I am waldher (https://keybase.io/waldher) on keybase. | |
* I have a public key whose fingerprint is 0100 FEAA 6AA5 EF00 2CA8 80B1 BD18 E856 3965 3115 | |
To claim this, I am signing this object: |
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
upstream app { | |
server unix:/home/user/application/tmp/socket fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /home/user/application/public; |
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
var listenOn = 3000; | |
if(process.env.NODE_ENV == 'production'){ | |
listenOn = "tmp/socket"; | |
} | |
var startServer = function(){ | |
app.listen(listenOn, undefined, undefined, function(){ | |
console.log("Listening on " + listenOn); | |
if(typeof(listenOn) == 'string'){ | |
fs.chmod(listenOn, 0777); |
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
syntax enable | |
set autoindent | |
set hlsearch | |
set number | |
set mouse=a | |
if has("autocmd") | |
filetype plugin on | |