Remove deprecated port setting

This commit is contained in:
Jonne Haß 2015-05-19 11:06:37 +02:00
parent 5a3b62d801
commit 898e8d5912
3 changed files with 1 additions and 13 deletions

View file

@ -32,7 +32,6 @@ defaults:
host:
pubsub_server: 'https://pubsubhubbub.appspot.com/'
server:
port:
listen: '0.0.0.0:3000'
rails_environment: 'development'
stderr_log:

View file

@ -145,10 +145,6 @@ configuration: ## Section
#listen: 'unix:tmp/diaspora.sock'
#listen: 'unix:/run/diaspora/diaspora.sock'
## The port on which the appserver should listen (default=none).
## Note: this setting is deprecated, use listen instead.
#port: 3000
## Rails environment (default='development').
## The environment in which the server should be started by default.
## Change this to 'production' if you wish to run a production environment.

View file

@ -103,7 +103,6 @@ fi
os=$(uname -s)
vars=$(bin/bundle exec ruby ./script/get_config.rb \
port=server.port \
single_process_mode=environment.single_process_mode? \
embed_sidekiq_worker=server.embed_sidekiq_worker \
workers=server.sidekiq_workers \
@ -119,12 +118,6 @@ then
export DB
fi
if [ -z "$PORT" -a -n "$port" ]
then
warning "Setting port via configuration is deprecated, set listen instead. See the updated config/diaspora.yml.example."
PORT="$port"
fi
args="$@"
for arg in $(echo $args | awk '{ for (i = 1; i <= NF; i++) print $i}')
do
@ -139,7 +132,7 @@ then
services=$(chk_service $PORT)
if [ -n "$services" ]
then
fatal "Port $port is already in use.\n\t$services"
fatal "Port $PORT is already in use.\n\t$services"
fi
fi