Sha256: 18c57f77f8740a0d9905a1bca3bf0e9b2edbc729d0b84c80a1a68fdf1fbf257f
Contents?: true
Size: 685 Bytes
Versions: 30
Compression:
Stored size: 685 Bytes
Contents
module ShopifyCLI module Services module App module Serve class PHPService < ServeService def call generate_url CLI::UI::Frame.open(context.message("core.app.serve.running_server")) do if ShopifyCLI::ProcessSupervision.running?(:npm_watch) ShopifyCLI::ProcessSupervision.stop(:npm_watch) end ShopifyCLI::ProcessSupervision.start(:npm_watch, "npm run watch", force_spawn: true) env = project.env.to_h context.system("php", "artisan", "serve", "--port", port.to_s, env: env) end end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems