Skip to content

Commit

Permalink
set the server name from stage rather than acting as default
Browse files Browse the repository at this point in the history
  • Loading branch information
TalkingQuickly committed Apr 13, 2014
1 parent d124001 commit 55fcc8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set :stage, :production
set :branch, "master"
set :server_name, "rdratestbuild.talkingquickly.co.uk"

# used in case we're deploying multiple versions of the same
# app side by side. Also provides quick sanity checks when looking
Expand Down
6 changes: 4 additions & 2 deletions config/deploy/shared/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ upstream unicorn {
}

server {
listen 80 default deferred;
server_name <%= fetch(:server_name) %>;
listen 80;
root <%= fetch(:deploy_to) %>/current/public;

location ^~ /assets/ {
Expand All @@ -27,7 +28,8 @@ server {

<% if fetch(:enable_ssl) %>
server {
listen 443 default deferred;
server_name <%= fetch(:server_name) %>;
listen 443;
root <%= fetch(:deploy_to) %>/current/public;

location ^~ /assets/ {
Expand Down

0 comments on commit 55fcc8f

Please sign in to comment.