diff --git a/app/views/static/site_map.html.erb b/app/views/static/site_map.html.erb
index 5b217ddfb..26a083562 100644
--- a/app/views/static/site_map.html.erb
+++ b/app/views/static/site_map.html.erb
@@ -58,7 +58,7 @@
Comments
<%= link_to("Help", wiki_pages_path(:title => "help:comments")) %>
<%= link_to("Listing", comments_path) %>
- <%= link_to("Trac", "http://trac.donmai.us") %>
+ <%= link_to("Github", "https://github.com/r888888888/danbooru") %>
Forum
diff --git a/config/deploy.rb b/config/deploy.rb
index 71815c3e4..7c7175d7a 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -82,11 +82,14 @@ namespace :deploy do
namespace :nginx do
desc "Shut down Nginx"
task :stop do
- sudo "for i in `pgrep -f nginx` ; do kill -SIGTERM $i ; done"
+ pids = capture("pgrep -f nginx").scan(/\d+/)
+ pids.each do |pid|
+ sudo "kill -SIGTERM #{pid}"
+ end
end
desc "Start Nginx"
- task :stop do
+ task :start do
sudo "/etc/init.d/nginx start"
end
end