Skip to content

Instantly share code, notes, and snippets.

@murtuzakz
murtuzakz / post-recieve
Last active August 29, 2015 14:06
Heroku ish Post Recive Hook
#!/bin/sh
# This checks out the code into remoteFolderWithCode after the bare repo gets the push.
git --work-tree=/var/www/remoteFolderWithCode --git-dir=/var/repo/RemoteBare.git checkout -f
cd /var/www/remoteFolderWithCode
# Detects its a Ruby app due to the presence of Gemfile and Gemfile.lock
# Remove files unnecessary for deployment (Mentioned in .slugignore )
Murtuzas-MacBook-Pro:HighScalability mkutub$ rake --trace
** Invoke default (first_time)
** Invoke simulator (first_time)
** Execute simulator
** Invoke build:simulator (first_time)
** Execute build:simulator
rm -f ./build/iPhoneSimulator-7.0-Development/HighScalability.app/Info.plist
RUBYOPT='' '/Library/RubyMotion/bin/gen_bridge_metadata' --format complete --cflags " -isysroot '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk' -miphoneos-version-min=7.0 -D__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__=70000 -I. -I'/Users/mkutub/workspace/rubymotionapps/HighScalability/vendor/Pods/Headers' -I'/Users/mkutub/workspace/rubymotionapps/HighScalability/vendor/Pods/Headers/AFNetworking'" '/Users/mkutub/workspace/rubymotionapps/HighScalability/vendor/Pods/Headers/____Pods-AFNetworking-prefix.h' '/Users/mkutub/workspace/rubymotionapps/HighScalability/vendor/Pods/Headers/____Pods-environment.h' '/Users/mkutub/workspace/rubymotionapps/HighScalability/v