added maintenance file
This commit is contained in:
@@ -64,12 +64,14 @@ namespace :deploy do
|
||||
namespace :web do
|
||||
desc "Present a maintenance page to visitors."
|
||||
task :disable do
|
||||
run "mv #{current_path}/public/maintenance.html.bak #{current_path}/public/maintenance.html"
|
||||
maintenance_html_path = "#{current_path}/public/maintenance.html.bak"
|
||||
run "if [ -e #{maintenance_html_path} ] ; then mv #{maintenance_html_path} #{current_path}/public/maintenance.html ; fi"
|
||||
end
|
||||
|
||||
desc "Makes the application web-accessible again."
|
||||
task :enable do
|
||||
run "mv #{current_path}/public/maintenance.html #{current_path}/public/maintenance.html.bak"
|
||||
maintenance_html_path = "#{current_path}/public/maintenance.html"
|
||||
run "if [ -e #{maintenance_html_path} ] ; then mv #{maintenance_html_path} #{current_path}/public/maintenance.html.bak ; fi"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
21
public/maintenance.html.bak
Normal file
21
public/maintenance.html.bak
Normal file
@@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Downbooru</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 10em 2em;
|
||||
font-family: 'Palatino Linotype', serif;
|
||||
}
|
||||
|
||||
h1, p {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>The site is down for maintenance.</h1>
|
||||
<p>Check <a href="http://search.twitter.com/search?q=&ands=danbooru&phrase=&ors=¬s=&tag=&lang=all&from=teruyo&to=&ref=&near=&within=15&units=mi&since=&until=&rpp=15">Twitter</a> for updates.</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user