Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielgrippi <danielgrippi@gmail.com>2012-05-12 04:12:30 +0400
committerdanielgrippi <danielgrippi@gmail.com>2012-05-12 04:12:30 +0400
commit871d3cc672cf000bf6d390ee86fc7b34289214ff (patch)
treeb6d9477bae78077d92f608921a14d3eff5185f16
parent81661c883f0230cafc1562961e5dd62fce901f5d (diff)
i am dumb. include custom mobile in before_deploy [ci skip]
-rw-r--r--lib/tasks/before_deploy.rake10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/tasks/before_deploy.rake b/lib/tasks/before_deploy.rake
index fcbd7ebf4..d56f1f55f 100644
--- a/lib/tasks/before_deploy.rake
+++ b/lib/tasks/before_deploy.rake
@@ -2,14 +2,16 @@ desc "include custom landing page before heroku san deploys"
task :before_deploy => :environment do
each_heroku_app do |stage|
- home_file = stage.config['HOME_FILE_DESKTOP']
- # Perform this task only if custom landing page is not present in app/views/home/_show.html.haml
- if home_file.present?
+ desktop_home_file = stage.config['HOME_FILE_DESKTOP']
+ mobile_home_file = stage.config['HOME_FILE_MOBILE']
+ # Perform this task only if custom landing page is not present in app/views/home/_show.html.haml
+ if desktop_home_file.present? || mobile_home_file.present?
puts "-----> custom landing page(s) detected..."
puts "-----> including custom landing page(s) in a temp commit"
@did_not_stash = system("git stash| grep 'No local changes to save'")
- system("git add #{home_file} -f") ? true : fail
+ system("git add #{desktop_home_file} -f") ? true : fail
+ system("git add #{mobile_home_file} -f") ? true : fail
system("git commit -m 'adding custom landing page(s) for heroku'") ? true : fail
puts "-----> done"