use .erb for custom landing page instead of .haml [ci skip]
This commit is contained in:
parent
7423dd095f
commit
f820e37838
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ desc "revert custom landing page commit after heroku san deploys"
|
|||
task :after_deploy => :environment do
|
||||
|
||||
# Perform this task only if custom landing page is not present in app/views/home/_show.html.haml
|
||||
if File.exist?(File.join(Rails.root, "app", "views", "home", "_show.html.haml")) && system("git log | head -5 | grep 'custom\ landing\ page'")
|
||||
if File.exist?(File.join(Rails.root, "app", "views", "home", "_show.html.erb")) && system("git log | head -5 | grep 'custom\ landing\ page'")
|
||||
puts "-----> resetting HEAD before custom landing page commit"
|
||||
|
||||
system("git reset HEAD^") ? true : fail
|
||||
|
|
|
|||
Loading…
Reference in a new issue