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
description "MyApp @ Rails" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
env APP_PATH="/var/www/apps/ecilop" | |
env APP_USER="deploy" | |
env APP_EXEC="rails server -e production" | |
# env APP_EXEC="rackup myapp.ru -s thin -E production" |
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
# add following to file config/boot.rb to change default host:port bindings | |
require 'rails/commands/server' | |
module Rails | |
class Server | |
alias :default_options_alias :default_options | |
def default_options | |
default_options_alias.merge!(Host: '127.0.0.1', Port: 3333) | |
end |
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
grep -Rl DryCrudSample . | xargs -n1 sed -i 's/DryCrudSample/HotspotManager/g' |
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
--- rp-pppoe-3.8/src/pppoe-server.c 2010-07-15 16:42:39.031057949 +0400 | |
+++ rp-pppoe-3.8/src/pppoe-server.c 2010-07-15 16:48:14.078605821 +0400 | |
@@ -97,6 +97,7 @@ | |
#define MAX_SERVICE_NAMES 64 | |
static int NumServiceNames = 0; | |
static char const *ServiceNames[MAX_SERVICE_NAMES]; | |
+static int ReactionOnNoServiceName = 1; | |
PppoeSessionFunctionTable DefaultSessionFunctionTable = { | |
PppoeStopSession, |
NewerOlder