diff --git a/lib/appengine/exec.rb b/lib/appengine/exec.rb
index <HASH>..<HASH> 100644
--- a/lib/appengine/exec.rb
+++ b/lib/appengine/exec.rb
@@ -355,7 +355,7 @@ module AppEngine
     def build_config command, image, env_variables, cloud_sql_instances
       args = ["-i", image]
       env_variables.each do |k, v|
-        args << "-e" << "#{k}=#{v}"
+        args << "-e" << "#{k}=#{v.gsub('$', '$$')}"
       end
       unless cloud_sql_instances.empty?
         cloud_sql_instances = Array(cloud_sql_instances)
Escape $ symbols in environment config (#<I>)

Thanks!