Sha256: 2eae40270d2103198c50ecbe277f7e58f85682545dc329cf90925c8a91fe6684
Contents?: true
Size: 699 Bytes
Versions: 24
Compression:
Stored size: 699 Bytes
Contents
module FaaStRuby module Local def self.start!(sync: false, deploy_env: 'stage', debug: false) Thread.new do env = { 'SYNC' => sync, 'DEPLOY_ENVIRONMENT' => deploy_env } cmd = [] cmd << "SYNC=true" if sync cmd << "DEBUG=true" if debug cmd << "DEPLOY_ENVIRONMENT=#{deploy_env}" cmd << "faastruby watch" 5.times do system(cmd.join(" ")) sleep 1 end puts "FaaStRuby Local exited due to an error." puts "If you think this shouldn't have happened, open an issue here: https://github.com/FaaStRuby/faastruby-cli/issues/new" exit 1 end end end end
Version data entries
24 entries across 24 versions & 1 rubygems