Class: ShopifyCLI::Services::App::Serve::PHPService
- Inherits:
-
ServeService
- Object
- BaseService
- ServeService
- ShopifyCLI::Services::App::Serve::PHPService
- Defined in:
- lib/shopify_cli/services/app/serve/php_service.rb
Instance Attribute Summary
Attributes inherited from ServeService
#context, #host, #no_update, #port
Instance Method Summary collapse
Methods inherited from ServeService
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from ShopifyCLI::Services::App::Serve::ServeService
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/shopify_cli/services/app/serve/php_service.rb', line 6 def call generate_url CLI::UI::Frame.open(context.("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 |