Sha256: 985660f4be452dd1a7eb3179cd7eccbcba41032738ae8f13fba2fdae785d26fa
Contents?: true
Size: 971 Bytes
Versions: 30
Compression:
Stored size: 971 Bytes
Contents
module ShopifyCLI module Services module App module Serve class RailsService < ServeService def call generate_url CLI::UI::Frame.open(context.message("core.app.serve.running_server")) do original_env = JSON.parse(ENV["ORIGINAL_ENV"] || "{}") env = original_env.merge(ShopifyCLI::Project.current.env.to_h) env.delete("HOST") if context.ruby_gem_version("shopify_app") < ::Semantic::Version.new("19.0.0") env["PORT"] = port.to_s env["GEM_PATH"] = [env["GEM_PATH"], Rails::Gem.gem_path(context)].compact .join(CLI::UI::OS.current.path_separator) if context.windows? context.system("ruby bin\\rails server", env: env) else context.system("bin/rails server", env: env) end end end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems