Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Everything works again

  • Loading branch information...
commit 985db915d0b50f63d4edbe29a51aa8fd850e9928 1 parent 1c4d8f0
Eric Fode authored
Showing with 5 additions and 0 deletions.
  1. +3 −0  .profile
  2. +2 −0  lib/ferret.rb
View
3  .profile
@@ -18,3 +18,6 @@ if [ ! -f $HOME/.ssh/id_rsa ]; then
heroku config:set --app $APP SSH_PRIVATE_KEY="$(< $HOME/.ssh/id_rsa)" SSH_PUBLIC_KEY="$(< $HOME/.ssh/id_rsa.pub)"
fi
+gem install bundler
+heroku plugins:install https://github.com/heroku/manager-cli.git
+heroku plugins:install https://github.com/ddollar/heroku-anvil.git
View
2  lib/ferret.rb
@@ -11,6 +11,8 @@
ENV["XID"] ||= SecureRandom.hex(4)
ENV["FREQ"] ||= "10"
ENV["NAME"] ||= File.basename($0, File.extname($0)) # e.g. git_push
+ENV["SERVICE_LOG_NAME"] ||= "#{ENV["APP_PREFIX"]}.#{ENV["NAME"]}" # e.g. ferret-noah.git-push #slave app name
+ENV["SERVICE_APP_NAME"] ||= ENV["SERVICE_LOG_NAME"].gsub(/[\._]/, '-') # e.g. ferret-noah-git-push #used for deploying slave app
$log_prefix ||= { app: "#{ENV["ORG"]}.#{ENV["APP"]}", xid: ENV["XID"] }
$logdevs ||= [$stdout, IO.popen("logger", "w")]
Please sign in to comment.
Something went wrong with that request. Please try again.