Skip to content

Commit

Permalink
Procfile syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
giovana-morais committed Oct 13, 2023
1 parent d0bee2a commit 03337ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
release: u+x generate_content.sh && ./generate_content.sh
release: chmod u+x generate_content.sh && ./generate_content.sh
web: bin/start-nginx-static
22 changes: 11 additions & 11 deletions config/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pid /app/nginx.pid;

error_log stderr info;
# As documented for Nginx, but we still see error during start-up in log:
# > nginx: [alert] could not open error log file: open() "./logs/error.log"
# > nginx: [alert] could not open error log file: open() './logs/error.log'

worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>;
# Heroku dynos have at least 4 cores.
Expand Down Expand Up @@ -34,23 +34,23 @@ http {
sendfile on;

# Must read the body in 5 seconds.
<% if ENV["SITEURL"] %>
<% if ENV['SITEURL'] %>
server {
listen <%= ENV["PORT"] %>;
rewrite ^(.*) <%= ENV["SITEURL"] %>$1 permanent;
listen <%= ENV['PORT'] %>;
rewrite ^(.*) <%= ENV['SITEURL'] %>$1 permanent;
}
<% end %>

server {
listen <%= ENV["PORT"] %>;
listen <%= ENV['PORT'] %>;
port_in_redirect off;
root /app/public;
<% if ENV["SITEURL"] %>
server_name <%= require 'uri'; URI.parse(ENV["SITEURL"]).host %>;
<% end %>
<% if ENV['SITEURL'] %>
server_name <%= require 'uri'; URI.parse(ENV['SITEURL']).host %>;
<% end %>

location / {
expires 10s;
location / {
expires 10s;
}
}
}
}

0 comments on commit 03337ad

Please sign in to comment.