mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-16 01:26:27 +03:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f43589c4c |
@@ -0,0 +1,82 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"fluffydiscord/roadrunner-symfony-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"FluffyDiscord\\RoadRunnerBundle\\FluffyDiscordRoadRunnerBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-package": {
|
||||||
|
"install/.rr.yaml": ".rr.yaml"
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"RR_RPC": "tcp://127.0.0.1:6001"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/fluffy_discord_road_runner.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"fluffy_discord_road_runner:",
|
||||||
|
" # Optional",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to your RoadRunner config file",
|
||||||
|
" # if you want to run cache:warmup without having your RoadRunner running in background,",
|
||||||
|
" # e.g. when building Docker images. Default is \".rr.yaml\"",
|
||||||
|
" rr_config_path: \".rr.yaml\"",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/http/http",
|
||||||
|
" http:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # This decides when to boot the Symfony kernel.",
|
||||||
|
" #",
|
||||||
|
" # false (default) - before first request (worker takes some time to be ready, but app has consistent response times)",
|
||||||
|
" # true - once first request arrives (worker is ready immediately, but inconsistent response times due to kernel boot time spikes)",
|
||||||
|
" #",
|
||||||
|
" # If you use large amount of workers, you might want to set this to true or else the RR boot up might",
|
||||||
|
" # take a lot of time or just boot up using only a few \"emergency\" workers",
|
||||||
|
" # and then use dynamic worker scaling as described here https://docs.roadrunner.dev/php-worker/scaling",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/plugins/centrifuge",
|
||||||
|
" centrifugo:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # See http section",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv",
|
||||||
|
" kv:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # If true (default), bundle will automatically register all \"kv\" adapters in your .rr.yaml.",
|
||||||
|
" # Registered services have alias \"cache.adapter.rr_kv.NAME\"",
|
||||||
|
" auto_register: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Which serializer should be used.",
|
||||||
|
" # By default, \"IgbinarySerializer\" will be used if \"igbinary\" php extension",
|
||||||
|
" # is installed (recommended), otherwise \"DefaultSerializer\".",
|
||||||
|
" # You are free to create your own serializer, it needs to implement",
|
||||||
|
" # Spiral\\RoadRunner\\KeyValue\\Serializer\\SerializerInterface",
|
||||||
|
" serializer: null",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to a keypair file",
|
||||||
|
" # for end-to-end encryption. \"sodium\" php extension is required.",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv#end-to-end-value-encryption",
|
||||||
|
" keypair_path: bin/keypair.key",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "18ece4020eb28519dd575a7fcff3a7dfd72f83ea"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"fluffydiscord/roadrunner-symfony-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"FluffyDiscord\\RoadRunnerBundle\\FluffyDiscordRoadRunnerBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-package": {
|
||||||
|
"install/.rr.yaml": ".rr.yaml"
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"RR_RPC": "tcp://127.0.0.1:6001"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/fluffy_discord_road_runner.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"fluffy_discord_road_runner:",
|
||||||
|
" # Optional",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to your RoadRunner config file",
|
||||||
|
" # if you want to run cache:warmup without having your RoadRunner running in background,",
|
||||||
|
" # e.g. when building Docker images. Default is \".rr.yaml\"",
|
||||||
|
" rr_config_path: \".rr.yaml\"",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/http/http",
|
||||||
|
" http:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # This decides when to boot the Symfony kernel.",
|
||||||
|
" #",
|
||||||
|
" # false (default) - before first request (worker takes some time to be ready, but app has consistent response times)",
|
||||||
|
" # true - once first request arrives (worker is ready immediately, but inconsistent response times due to kernel boot time spikes)",
|
||||||
|
" #",
|
||||||
|
" # If you use large amount of workers, you might want to set this to true or else the RR boot up might",
|
||||||
|
" # take a lot of time or just boot up using only a few \"emergency\" workers",
|
||||||
|
" # and then use dynamic worker scaling as described here https://docs.roadrunner.dev/php-worker/scaling",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # This decides if Symfony routing should be preloaded when worker starts and boots Symfony kernel.",
|
||||||
|
" # This option halves the initial request response time.",
|
||||||
|
" # (based on a project with over 400 routes and quite a lot of services, YMMW)",
|
||||||
|
" #",
|
||||||
|
" # true (default in PROD) - sends one dummy (empty) HTTP request to the kernel to initialize routing and services around it",
|
||||||
|
" # false (default in DEV) - only when first worker request arrives, routing and services are loaded",
|
||||||
|
" #",
|
||||||
|
" # You might want to create a dummy \"/\" route for the route to \"land\",",
|
||||||
|
" # or listen to onKernelRequest events and look in the request for the attribute",
|
||||||
|
" # FluffyDiscord\\RoadRunnerBundle\\Worker\\HttpWorker::DUMMY_REQUEST_ATTRIBUTE",
|
||||||
|
" # Set this to \"false\" if you have any issues and report them to me.",
|
||||||
|
" early_router_initialization: true",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/plugins/centrifuge",
|
||||||
|
" centrifugo:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # See http section",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv",
|
||||||
|
" kv:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # If true (default), bundle will automatically register all \"kv\" adapters in your .rr.yaml.",
|
||||||
|
" # Registered services have alias \"cache.adapter.rr_kv.NAME\"",
|
||||||
|
" auto_register: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Which serializer should be used.",
|
||||||
|
" # By default, \"IgbinarySerializer\" will be used if \"igbinary\" php extension",
|
||||||
|
" # is installed (recommended), otherwise \"DefaultSerializer\".",
|
||||||
|
" # You are free to create your own serializer, it needs to implement",
|
||||||
|
" # Spiral\\RoadRunner\\KeyValue\\Serializer\\SerializerInterface",
|
||||||
|
" serializer: null",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to a keypair file",
|
||||||
|
" # for end-to-end encryption. \"sodium\" php extension is required.",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv#end-to-end-value-encryption",
|
||||||
|
" keypair_path: bin/keypair.key",
|
||||||
|
"",
|
||||||
|
"when@dev:",
|
||||||
|
" fluffy_discord_road_runner:",
|
||||||
|
" http:",
|
||||||
|
" early_router_initialization: false",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "559a8d4f473eaf3ec50c18b303eddae790479b23"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"fluffydiscord/roadrunner-symfony-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"FluffyDiscord\\RoadRunnerBundle\\FluffyDiscordRoadRunnerBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-package": {
|
||||||
|
"install/.rr.yaml": ".rr.yaml"
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"RR_RPC": "tcp://127.0.0.1:6001"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/fluffy_discord_road_runner.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"fluffy_discord_road_runner:",
|
||||||
|
" # Optional",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to your RoadRunner config file",
|
||||||
|
" # if you want to run cache:warmup without having your RoadRunner running in background,",
|
||||||
|
" # e.g. when building Docker images. Default is \".rr.yaml\"",
|
||||||
|
" rr_config_path: \".rr.yaml\"",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/http/http",
|
||||||
|
" http:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # This decides when to boot the Symfony kernel.",
|
||||||
|
" #",
|
||||||
|
" # false (default) - before first request (worker takes some time to be ready, but app has consistent response times)",
|
||||||
|
" # true - once first request arrives (worker is ready immediately, but inconsistent response times due to kernel boot time spikes)",
|
||||||
|
" #",
|
||||||
|
" # If you use large amount of workers, you might want to set this to true or else the RR boot up might",
|
||||||
|
" # take a lot of time or just boot up using only a few \"emergency\" workers",
|
||||||
|
" # and then use dynamic worker scaling as described here https://docs.roadrunner.dev/php-worker/scaling",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # Zero-config worker pre-warming: workers serve their first request at near-hot speed.",
|
||||||
|
" # Replaces the \"early_router_initialization\" option removed in v7.",
|
||||||
|
" # https://github.com/FluffyDiscord/roadrunner-symfony-bundle#worker-warmup",
|
||||||
|
" warmup:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Master switch for the whole system (boot-time warmers + learned manifest).",
|
||||||
|
" enabled: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Learn from real traffic: each worker records what responses load, and every",
|
||||||
|
" # later worker replays it before RoadRunner marks it ready.",
|
||||||
|
" learn: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Stop recording after this many responses per worker process.",
|
||||||
|
" learn_requests: 30",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Where the learned manifest is stored.",
|
||||||
|
" # Default: \"<kernel.cache_dir>/roadrunner/warmup.manifest.json\"",
|
||||||
|
" manifest_path: null",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/plugins/centrifuge",
|
||||||
|
" centrifugo:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # See http section",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv",
|
||||||
|
" kv:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # If true (default), bundle will automatically register all \"kv\" adapters in your .rr.yaml.",
|
||||||
|
" # Registered services have alias \"cache.adapter.rr_kv.NAME\"",
|
||||||
|
" auto_register: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Which serializer should be used.",
|
||||||
|
" # By default, \"IgbinarySerializer\" will be used if \"igbinary\" php extension",
|
||||||
|
" # is installed (recommended), otherwise \"DefaultSerializer\".",
|
||||||
|
" # You are free to create your own serializer, it needs to implement",
|
||||||
|
" # Spiral\\RoadRunner\\KeyValue\\Serializer\\SerializerInterface",
|
||||||
|
" serializer: null",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to a keypair file",
|
||||||
|
" # for end-to-end encryption. \"sodium\" php extension is required.",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv#end-to-end-value-encryption",
|
||||||
|
" keypair_path: bin/keypair.key",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "e253ae24b050fcfa05aa1414383c6519ce07f0a9"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"fluffydiscord/roadrunner-symfony-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"FluffyDiscord\\RoadRunnerBundle\\FluffyDiscordRoadRunnerBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-package": {
|
||||||
|
"install/.rr.yaml": ".rr.yaml"
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"RR_RPC": "tcp://127.0.0.1:6001"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/fluffy_discord_road_runner.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"fluffy_discord_road_runner:",
|
||||||
|
" # Optional",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to your RoadRunner config file",
|
||||||
|
" # if you want to run cache:warmup without having your RoadRunner running in background,",
|
||||||
|
" # e.g. when building Docker images. Default is \".rr.yaml\"",
|
||||||
|
" rr_config_path: \".rr.yaml\"",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/http/http",
|
||||||
|
" http:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # This decides when to boot the Symfony kernel.",
|
||||||
|
" #",
|
||||||
|
" # false (default) - before first request (worker takes some time to be ready, but app has consistent response times)",
|
||||||
|
" # true - once first request arrives (worker is ready immediately, but inconsistent response times due to kernel boot time spikes)",
|
||||||
|
" #",
|
||||||
|
" # If you use large amount of workers, you might want to set this to true or else the RR boot up might",
|
||||||
|
" # take a lot of time or just boot up using only a few \"emergency\" workers",
|
||||||
|
" # and then use dynamic worker scaling as described here https://docs.roadrunner.dev/php-worker/scaling",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # How the RoadRunner request is converted into a Symfony request.",
|
||||||
|
" #",
|
||||||
|
" # native (fastest) - build the Symfony Request directly from the RoadRunner",
|
||||||
|
" # request, skipping the intermediate PSR-7 object. Roughly halves the",
|
||||||
|
" # per-request conversion cost.",
|
||||||
|
" # psr7 - the previous behavior: build a PSR-7 request first, then convert it",
|
||||||
|
" # via symfony/psr-http-message-bridge. Use this when you decorate the",
|
||||||
|
" # conversion with a custom HttpFoundationFactoryInterface service",
|
||||||
|
" # (that service is picked up automatically).",
|
||||||
|
" # auto (default) - psr7 when a custom HttpFoundationFactoryInterface service",
|
||||||
|
" # is registered, native otherwise.",
|
||||||
|
" #",
|
||||||
|
" # The small, deliberate behavior differences of \"native\" (uploaded-file",
|
||||||
|
" # class/pathname, verbatim header forwarding, raw query-string encoding)",
|
||||||
|
" # are listed in the bundle's UPGRADE.md.",
|
||||||
|
" request_factory: auto",
|
||||||
|
"",
|
||||||
|
" # Zero-config worker pre-warming: workers serve their first request at near-hot speed.",
|
||||||
|
" # Replaces the \"early_router_initialization\" option removed in v7.",
|
||||||
|
" # https://github.com/FluffyDiscord/roadrunner-symfony-bundle#worker-warmup",
|
||||||
|
" warmup:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Master switch for the whole system (boot-time warmers + learned manifest).",
|
||||||
|
" enabled: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Learn from real traffic: each worker records what responses load, and every",
|
||||||
|
" # later worker replays it before RoadRunner marks it ready.",
|
||||||
|
" learn: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Stop recording after this many responses per worker process.",
|
||||||
|
" learn_requests: 30",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Where the learned manifest is stored.",
|
||||||
|
" # Default: \"<kernel.cache_dir>/roadrunner/warmup.manifest.json\"",
|
||||||
|
" manifest_path: null",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/plugins/centrifuge",
|
||||||
|
" centrifugo:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # See http section",
|
||||||
|
" lazy_boot: false",
|
||||||
|
"",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv",
|
||||||
|
" kv:",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # If true (default), bundle will automatically register all \"kv\" adapters in your .rr.yaml.",
|
||||||
|
" # Registered services have alias \"cache.adapter.rr_kv.NAME\"",
|
||||||
|
" auto_register: true",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Which serializer should be used.",
|
||||||
|
" # By default, \"IgbinarySerializer\" will be used if \"igbinary\" php extension",
|
||||||
|
" # is installed (recommended), otherwise \"DefaultSerializer\".",
|
||||||
|
" # You are free to create your own serializer, it needs to implement",
|
||||||
|
" # Spiral\\RoadRunner\\KeyValue\\Serializer\\SerializerInterface",
|
||||||
|
" serializer: null",
|
||||||
|
"",
|
||||||
|
" # Optional",
|
||||||
|
" # -----------",
|
||||||
|
" # Specify relative path from \"kernel.project_dir\" to a keypair file",
|
||||||
|
" # for end-to-end encryption. \"sodium\" php extension is required.",
|
||||||
|
" # https://docs.roadrunner.dev/key-value/overview-kv#end-to-end-value-encryption",
|
||||||
|
" keypair_path: bin/keypair.key",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "497a4795c993bf21014fd1a69b27b8e4d7e6fd7f"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
{
|
|
||||||
"manifests": {
|
|
||||||
"fyrst/shopware-cd": {
|
|
||||||
"manifest": {
|
|
||||||
"copy-from-package": {
|
|
||||||
"overlay/": ""
|
|
||||||
},
|
|
||||||
"bundles": {
|
|
||||||
"Fyrst\\ShopwareCd\\FyrstShopwareCdBundle": [
|
|
||||||
"all"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"env": {
|
|
||||||
"SHOPWARE_SHOP_ID": "",
|
|
||||||
"SHOPWARE_DEPLOY_ENV": "live",
|
|
||||||
"SHOPWARE_DATA_BASE": "/var/lib/shopware/data"
|
|
||||||
},
|
|
||||||
"post-install-output": [
|
|
||||||
" * <fg=blue>fyrst/shopware-cd</>",
|
|
||||||
" Flex copied CD files from the package",
|
|
||||||
" <comment>overlay/</comment> into the shop root: CI,",
|
|
||||||
" <comment>deploy/</comment> (including CD Compose), <comment>.dockerignore</comment>,",
|
|
||||||
" and <comment>.env.example</comment>",
|
|
||||||
" (same idea as <comment>shopware/docker</comment> copying <comment>docker/Dockerfile</comment>).",
|
|
||||||
"",
|
|
||||||
" <comment>compose.yaml</comment>, <comment>.gitignore</comment>, and",
|
|
||||||
" <comment>.shopware-project.yml</comment> (create\u2019s default;",
|
|
||||||
" <comment>.shopware-project.yaml</comment> is also accepted \u2014 do not rename)",
|
|
||||||
" are owned by",
|
|
||||||
" <comment>shopware-cli project create</comment> / the CLI \u2014 not this recipe.",
|
|
||||||
"",
|
|
||||||
" Local: <comment>shopware-cli project dev</comment> and the CLI-managed",
|
|
||||||
" shop-root <comment>compose.yaml</comment>.",
|
|
||||||
" VPS/CD: files under <comment>deploy/</comment>",
|
|
||||||
" (<comment>deploy/compose.yaml</comment>, <comment>deploy/compose.prod.yaml</comment>,",
|
|
||||||
" <comment>deploy/compose.vps.yaml</comment>).",
|
|
||||||
" Runtime DB/bind-mount copy between VPS hosts:",
|
|
||||||
" <comment>fyrst-cli shopware sync pull</comment>",
|
|
||||||
" (see <comment>deploy/sync-runtime.md</comment>).",
|
|
||||||
" DB snapshots use <comment>shopware-cli project dump</comment>",
|
|
||||||
" (fyrst-cli never dumps; restore is",
|
|
||||||
" <comment>fyrst-cli shopware db import</comment>).",
|
|
||||||
" Live backups (not sync):",
|
|
||||||
" <comment>fyrst-cli shopware backup create</comment>",
|
|
||||||
" (see <comment>deploy/backup-runtime.md</comment>).",
|
|
||||||
" Rollback:",
|
|
||||||
" <comment>IMAGE_TAG=$(cat .previous-tag) fyrst-cli shopware deploy rollback</comment>.",
|
|
||||||
" Each VPS needs <comment>fyrst-cli</comment> 0.1.0+",
|
|
||||||
" (<comment>https://github.com/fyrst-dev/cli</comment>).",
|
|
||||||
" CI runs <comment>fyrst-cli shopware deploy release</comment>",
|
|
||||||
" with <comment>IMAGE</comment> / <comment>IMAGE_TAG</comment> /",
|
|
||||||
" <comment>COMPOSE_DIR</comment>.",
|
|
||||||
" TLS edge: <comment>deploy/edge/Caddyfile</comment>.",
|
|
||||||
" Live \u2192 local project dev rsync (no DB):",
|
|
||||||
" <comment>fyrst-cli shopware sync local</comment>",
|
|
||||||
" (reads <comment>SHOPWARE_SHOP_ID</comment> from local <comment>.env</comment>;",
|
|
||||||
" remote root <comment>/var/lib/shopware/data/${SHOPWARE_SHOP_ID}/live</comment>;",
|
|
||||||
" <comment>--data all</comment> is refused).",
|
|
||||||
"",
|
|
||||||
" Flex may append a <comment>###> fyrst/shopware-cd ###</comment>",
|
|
||||||
" block to shop-root <comment>.env</comment> (empty",
|
|
||||||
" <comment>SHOPWARE_SHOP_ID</comment>, <comment>SHOPWARE_DEPLOY_ENV=live</comment>,",
|
|
||||||
" <comment>SHOPWARE_DATA_BASE=/var/lib/shopware/data</comment>).",
|
|
||||||
" It does not overwrite create\u2019s whole <comment>.env</comment>",
|
|
||||||
" and does not put secrets in that block. Then run",
|
|
||||||
" <comment>fyrst-cli shopware env init --shop-id \u2026</comment>",
|
|
||||||
" (see <comment>deploy/README</comment>).",
|
|
||||||
" VPS <comment>.env</comment> source of truth (required):",
|
|
||||||
" <comment>SHOPWARE_SHOP_ID</comment> (same slug on live + staging + laptop),",
|
|
||||||
" <comment>SHOPWARE_DEPLOY_ENV</comment> (live|staging|playground|dev).",
|
|
||||||
" Compose derives project name",
|
|
||||||
" (<comment>${SHOPWARE_SHOP_ID}-${SHOPWARE_DEPLOY_ENV}</comment>)",
|
|
||||||
" and bind-mount paths from those two plus optional",
|
|
||||||
" <comment>SHOPWARE_DATA_BASE</comment> (default",
|
|
||||||
" <comment>/var/lib/shopware/data</comment>) \u2014 three separate interpolations,",
|
|
||||||
" no nested defaults. It does not require",
|
|
||||||
" <comment>COMPOSE_PROJECT_NAME</comment> or <comment>SHOPWARE_DATA_ROOT</comment>",
|
|
||||||
" (optional for scripts/docs; fyrst-cli derives when unset and prefers them",
|
|
||||||
" when set \u2014 do not assign them empty).",
|
|
||||||
" WARNING: <comment>shopware-cli project create</comment> writes",
|
|
||||||
" <comment>COMPOSE_PROJECT_NAME=sw-shop-\u2026</comment> into shop-root",
|
|
||||||
" <comment>.env</comment> for local <comment>project dev</comment>. That env var",
|
|
||||||
" overrides Compose <comment>name:</comment>",
|
|
||||||
" (<comment>${SHOPWARE_SHOP_ID}-${SHOPWARE_DEPLOY_ENV}</comment>).",
|
|
||||||
" On the VPS, comment out that line",
|
|
||||||
" (<comment>fyrst-cli shopware env init --vps</comment> or by hand).",
|
|
||||||
" Flex does not delete it on <comment>composer require</comment>",
|
|
||||||
" (create owns the local flow).",
|
|
||||||
" Bootstrap:",
|
|
||||||
" <comment>DATA=\"${SHOPWARE_DATA_BASE:-/var/lib/shopware/data}/${SHOPWARE_SHOP_ID}/${SHOPWARE_DEPLOY_ENV}\"</comment>",
|
|
||||||
" then <comment>mkdir -p \"${DATA}\"/{files,media,thumbnail,theme,sitemap}</comment>",
|
|
||||||
" then <comment>chown -R 82:82 \"${DATA}\"</comment>.",
|
|
||||||
" Live profiles: uncomment",
|
|
||||||
" <comment>COMPOSE_PROFILES=redis,worker,scheduler</comment>",
|
|
||||||
" in <comment>.env</comment> (worker + scheduler; redis if used). Staging leaves",
|
|
||||||
" this unset unless you need async tasks.",
|
|
||||||
" <comment>fyrst-cli shopware deploy release</comment> warns on live when it is empty; it does",
|
|
||||||
" not auto-enable.",
|
|
||||||
" Same-host tag-and-load / air-gap: <comment>PULL_POLICY=never</comment>",
|
|
||||||
" and <comment>SKIP_PULL=1</comment> (or",
|
|
||||||
" <comment>fyrst-cli shopware deploy release --skip-pull</comment>). Default",
|
|
||||||
" <comment>pull_policy</comment> is <comment>always</comment> for CI/VPS.",
|
|
||||||
" Several shops or live+staging on one VPS share the host; shop id + env",
|
|
||||||
" keep stacks isolated.",
|
|
||||||
"",
|
|
||||||
" You MUST require <comment>shopware/docker</comment> in the same Composer command as",
|
|
||||||
" this package. That recipe copies <comment>docker/Dockerfile</comment>, which CI and",
|
|
||||||
" CD Compose require (default <comment>DOCKERFILE=docker/Dockerfile</comment>). This recipe",
|
|
||||||
" does not ship a root Dockerfile. A missing <comment>docker/Dockerfile</comment>",
|
|
||||||
" means <comment>shopware/docker</comment> was skipped.",
|
|
||||||
"",
|
|
||||||
" Flex may append SoT keys to <comment>.env</comment>; it does not",
|
|
||||||
" overwrite create\u2019s whole <comment>.env</comment>. Then run",
|
|
||||||
" <comment>fyrst-cli shopware env init --shop-id \u2026</comment>",
|
|
||||||
" (VPS: add <comment>--vps</comment>; see <comment>deploy/README</comment>).",
|
|
||||||
" If <comment>.env</comment> is missing, that command copies",
|
|
||||||
" <comment>.env.example</comment> first. Commit the copied files;",
|
|
||||||
" <comment>vendor/</comment> is gitignored.",
|
|
||||||
"",
|
|
||||||
" shopware-cli project create writes <comment>.shopware-project.yml</comment>",
|
|
||||||
" (that extension is fine). shopware-cli accepts both",
|
|
||||||
" <comment>.yml</comment> and <comment>.yaml</comment>; do not rename.",
|
|
||||||
" GitHub Actions picks up",
|
|
||||||
" <comment>.github/workflows/cd.yaml</comment>. GitLab still defaults to",
|
|
||||||
" <comment>.gitlab-ci.yml</comment>: set Settings \u2192 CI/CD \u2192 CI/CD configuration file",
|
|
||||||
" to <comment>.gitlab-ci.yaml</comment> (or copy/symlink that name).",
|
|
||||||
"",
|
|
||||||
" Flex registers",
|
|
||||||
" <comment>Fyrst\\ShopwareCd\\FyrstShopwareCdBundle</comment>",
|
|
||||||
" in <comment>config/bundles.php</comment>.",
|
|
||||||
" Post-restore sales-channel URL rewrite uses",
|
|
||||||
" <comment>APP_URL</comment> in shop-root <comment>.env</comment>;",
|
|
||||||
" sync calls",
|
|
||||||
" <comment>bin/console fyrst:sales-channel:rewrite-urls</comment>.",
|
|
||||||
" Laptop SSH (<comment>SHOPWARE_SSH_*</comment>) belongs in",
|
|
||||||
" <comment>.env.local</comment>.",
|
|
||||||
" Shops need <comment>composer update fyrst/shopware-cd</comment>",
|
|
||||||
" so the command and bundle exist, then",
|
|
||||||
" <comment>composer recipes:update fyrst/shopware-cd</comment>.",
|
|
||||||
"",
|
|
||||||
" Refresh later with <comment>composer recipes:update fyrst/shopware-cd</comment>.",
|
|
||||||
" See https://github.com/fyrst-dev/shopware-cd"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"files": [],
|
|
||||||
"ref": "b31466bc7861d30c0b1f128d8dc226e0efa3b5e6"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+7
-4
@@ -1,8 +1,11 @@
|
|||||||
{
|
{
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"recipes": {
|
"recipes": {
|
||||||
"fyrst/shopware-cd": [
|
"fluffydiscord/roadrunner-symfony-bundle": [
|
||||||
"1.0"
|
"2.3",
|
||||||
|
"3.0",
|
||||||
|
"7.0",
|
||||||
|
"7.1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"recipe-conflicts": [],
|
"recipe-conflicts": [],
|
||||||
@@ -12,9 +15,9 @@
|
|||||||
"_links": {
|
"_links": {
|
||||||
"repository": "github.com/symfony/recipes-contrib",
|
"repository": "github.com/symfony/recipes-contrib",
|
||||||
"origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main",
|
"origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main",
|
||||||
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2049/{package_dotted}.{version}.json",
|
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2015/{package_dotted}.{version}.json",
|
||||||
"recipe_template_relative": "{package_dotted}.{version}.json",
|
"recipe_template_relative": "{package_dotted}.{version}.json",
|
||||||
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2049/archived/{package_dotted}/{ref}.json",
|
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2015/archived/{package_dotted}/{ref}.json",
|
||||||
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user