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

Version Path
shopify-cli-2.36.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.35.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.34.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.33.1 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.33.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.32.1 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.32.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.31.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.30.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.29.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.28.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.27.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.26.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.25.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.24.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.23.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.22.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.21.0 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.20.1 lib/shopify_cli/services/app/serve/php_service.rb
shopify-cli-2.20.0 lib/shopify_cli/services/app/serve/php_service.rb