Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion resources/platformsh/ibexa-commerce/5.0/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,20 @@ hooks:
echo "TIP: If you need to authenticate against Github/Gitlab/updates.ibexa.co, use COMPOSER_AUTH env variable"
echo "See: https://docs.platform.sh/guides/general/composer-auth.html#set-the-envcomposer_auth-project-variable"
fi

curl -fs https://get.symfony.com/cloud/configurator | bash

NODE_VERSION=v22.16.0 symfony-build

if ! composer show -q ibexa/cloud 2>/dev/null; then
echo ""
echo "ERROR: The package 'ibexa/cloud' is mandatory for Ibexa Cloud deployments."
echo "Please install it according to the documentation:"
echo "https://doc.ibexa.co/en/5.0/ibexa_cloud/install_on_ibexa_cloud/#1-prepare-configuration-files"
echo ""
exit 1
fi

# Deploy hook, access to services & done once (per cluster, not per node), only mounts are writable at this point
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
deploy: |
Expand Down
11 changes: 10 additions & 1 deletion resources/platformsh/ibexa-experience/5.0/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,20 @@ hooks:
echo "TIP: If you need to authenticate against Github/Gitlab/updates.ibexa.co, use COMPOSER_AUTH env variable"
echo "See: https://docs.platform.sh/guides/general/composer-auth.html#set-the-envcomposer_auth-project-variable"
fi

curl -fs https://get.symfony.com/cloud/configurator | bash

NODE_VERSION=v22.16.0 symfony-build

if ! composer show -q ibexa/cloud 2>/dev/null; then
echo ""
echo "ERROR: The package 'ibexa/cloud' is mandatory for Ibexa Cloud deployments."
echo "Please install it according to the documentation:"
echo "https://doc.ibexa.co/en/5.0/ibexa_cloud/install_on_ibexa_cloud/#1-prepare-configuration-files"
echo ""
exit 1
fi

# Deploy hook, access to services & done once (per cluster, not per node), only mounts are writable at this point
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
deploy: |
Expand Down
11 changes: 10 additions & 1 deletion resources/platformsh/ibexa-headless/5.0/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,20 @@ hooks:
echo "TIP: If you need to authenticate against Github/Gitlab/updates.ibexa.co, use COMPOSER_AUTH env variable"
echo "See: https://docs.platform.sh/guides/general/composer-auth.html#set-the-envcomposer_auth-project-variable"
fi

curl -fs https://get.symfony.com/cloud/configurator | bash

NODE_VERSION=v22.16.0 symfony-build

if ! composer show -q ibexa/cloud 2>/dev/null; then
echo ""
echo "ERROR: The package 'ibexa/cloud' is mandatory for Ibexa Cloud deployments."
echo "Please install it according to the documentation:"
echo "https://doc.ibexa.co/en/5.0/ibexa_cloud/install_on_ibexa_cloud/#1-prepare-configuration-files"
echo ""
exit 1
fi

# Deploy hook, access to services & done once (per cluster, not per node), only mounts are writable at this point
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
deploy: |
Expand Down
9 changes: 9 additions & 0 deletions resources/platformsh/ibexa-oss/5.0/.platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ hooks:
curl -fs https://get.symfony.com/cloud/configurator | bash

NODE_VERSION=v22.16.0 symfony-build

if ! composer show -q ibexa/cloud 2>/dev/null; then
echo ""
echo "ERROR: The package 'ibexa/cloud' is mandatory for Ibexa Cloud deployments."
echo "Please install it according to the documentation:"
echo "https://doc.ibexa.co/en/5.0/ibexa_cloud/install_on_ibexa_cloud/#1-prepare-configuration-files"
echo ""
exit 1
fi

# Deploy hook, access to services & done once (per cluster, not per node), only mounts are writable at this point
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
Expand Down
11 changes: 10 additions & 1 deletion src/lib/Command/IbexaSetupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;

/**
* @deprecated 5.0.7 This command is deprecated and will be removed in 6.0.0 release. Rely on ibexa/cloud instead.
*/
#[AsCommand(name: 'ibexa:setup', description: 'Runs post install configuration tool.')]
class IbexaSetupCommand extends BaseCommand
{
private VersionParser $versionParser;

private const PSH_RESOURCES_PATH = __DIR__ . '/../../../resources/platformsh';
private const string PSH_RESOURCES_PATH = __DIR__ . '/../../../resources/platformsh';

protected function configure(): void
{
Expand All @@ -48,6 +51,12 @@ protected function configure(): void
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_deprecation(
'ibexa/post-install',
'5.0.7',
'This command is deprecated and will be removed in 6.0.0 release. Rely on ibexa/cloud instead.'
);

if ($input->getOption('platformsh')) {
$this->getIO()->write('Installing Platform.sh config files...', true, IOInterface::NORMAL);

Expand Down
Loading