Fix for environment variable hemoraging due to single quotes.  Added check to not set restart_command on the App deploy command if its not in a rails-app layer.