Tiny change to README to suggest using 'system' over 'exec'

Reason being, 'exec' will run the shell command and then exit the ruby
process. While 'system will run the shell command and then continue
execution.

I feel this is a better example as the first thing I did was write a
rake task that chains multiple tasks together and the way 'exec' was
ending the process cost me a bit of time trouble shooting why.
This commit is contained in:
Jack Casey 2014-03-20 23:10:03 +08:00
parent 6c426c0ef3
commit 4fe4526807

View file

@ -137,7 +137,7 @@ end
namespace :deploy do namespace :deploy do
def deploy(env) def deploy(env)
puts "Deploying to #{env}" puts "Deploying to #{env}"
exec "TARGET=#{env} bundle exec middleman deploy" system "TARGET=#{env} bundle exec middleman deploy"
end end
task :staging do task :staging do