Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
dd607fb4
Commit
dd607fb4
authored
May 29, 2011
by
MrZYX
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user can now disable thin and use ./script/server to fire up resque and websocket only
parent
0febee6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
config/script_server_config.yml.example
config/script_server_config.yml.example
+4
-1
script/server
script/server
+4
-1
No files found.
config/script_server_config.yml.example
View file @
dd607fb4
script_server:
# Enable thin as application server
enable_thin: true
# Port on which thin should listen
thin_port: 3000
...
...
@@ -6,4 +9,4 @@ script_server:
default_thin_args: "-p $THIN_PORT -e $RAILS_ENV"
# Possibilities are development, production
rails_env: "development"
\ No newline at end of file
rails_env: "development"
script/server
View file @
dd607fb4
...
...
@@ -173,4 +173,7 @@ if [ "$(./script/get_config.rb single_process_mode $RAILS_ENV)" = "false" ]; the
bundle
exec
ruby ./script/websocket_server.rb&
fi
bundle
exec
thin start
$args
if
[
"
$(
./script/get_config.rb enable_thin script_server
)
"
=
"true"
]
;
then
bundle
exec
thin start
$args
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment