imagex / swat
A Robo CLI tool for ImageX Projects in Drupal 8+
6.1.0
2024-04-16 21:49 UTC
Requires
- ext-posix: *
- acquia/coding-standards: ^2.0
- acquia/drupal-recommended-settings: ^1.0
- consolidation/config: ^2.0
- consolidation/robo: ^4
- cweagans/composer-patches: ^1.7
- drush/drush: ^12.5 || 13
- php-parallel-lint/php-parallel-lint: ^1.4
- phpro/grumphp: ^2.5
- 6.1.x-dev
- 6.1.0
- 6.0.x-dev
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.x-dev
- 5.1.4
- 5.1.3
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.x-dev
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-alpha2
- 4.0.0-alpha1
- 3.x-dev
- 3.1.0
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.0.0-rc2
- 2.0.0-rc1
- 2.0.0-alpha2
- 2.0.0-alpha1
- 1.0.0-alpha4
- 1.0.0-alpha3
- 1.0.0-alpha2
- 1.0.0-alpha1
- dev-package_command
- dev-openy
- dev-feature/IXMDEV-322-install-and-enable-user-prote
- dev-bugfix/ckeditor-build
- dev-feature/IXMDEV-394-add-globbing-support-for-icons
- dev-feauture/sdc-support
- dev-feature/IXMDEV-357
- dev-feature/add-bsui-to-common-stack
- dev-feature/fix-composer-json
- dev-hotifix/theme-command-install-library-dependency
- dev-feature/pipeline-images
- dev-feature/README
- dev-feature/remove-acquiacms-add-blt
- dev-fix/namespace-issue
- dev-docksal/mariadb
- dev-master
This package is auto-updated.
Last update: 2024-04-19 21:28:11 UTC
README
(SUPER WICKED AWESOME TOOL)
SWAT is meant to be a helper for projects within ImageX. It provides a docksal setup, some templated Bitbucket pipelines and deployment helpers. And it's super wicked awesome.
Requirements
SWAT requires the following to run:
- Docksal - https://docksal.io/
- Composer - https://getcomposer.org/
- PHP >=8.1
Available Commands
Run fin swat list
to get a listing of available commands.
GETTING STARTED
Note: it's a good idea to run fin upgrade
before starting to be sure you have the latest stacks.
New projects must use Drupal 10.
fin project create --repo=git@bitbucket.org:ixm/swat-project-template.git --name=<project_name>
- Follow the prompts
cd <project-name>
- Modify
docksal.env
for any stack changes- Hardcode your PHP, DB, etc images to match your remote host
- If you've made changes, make sure to reset your stack!
- Modify
swat/swat.yml
specific to project - see more details here- Add Remote Git repo (Acquia, pantheon, etc)
- Add Remote Git user/email (see example below)
- Download your remote drush aliases: Project Setup - Drush
- (If docroot changed) Update your location in:
phpcs.xml
.tugboat/config.yml
fin swat install
- Export your config.
- Setup your git remote
git remote add origin git@bitbucket.org:example/example.git
git add . && git commit -m "PROJ-1: Initial Setup for <project>."
git push -u origin master
Hosting Provider
See our internal documentation: Configuring your hosting provider files
Git:
Example of Git config in swat.yml
for remote:
git:
default_branch: develop
remotes:
cloud: 'ixmcomponents@svn-4707.devcloud.hosting.acquia.com:ixmcomponents.git'
user:
name: 'ImageX Media'
email: no-reply@imagexmedia.com
Existing Projects
For existing projects you can still get hosting pipelines or docksal setup.
fin composer require imagex/swat
Available Commands
setup:existing
- This command runs both hosting and pipeline commands.
hosting
- Setup the defaults for a hosting/deployment.
bitbucket:pipelines
- Installs a default pipeline based on hosting
Troubleshoot
git@bitbucket.org: Permission denied (publickey).
onfin project create
:- Check if you have access on https://bitbucket.org/ixm/swat-project-template
- Run
fin system start
and try again
Project healthcheck has timed out
onfin project create
:- Run the following commands:
fin start fin init
- Run the following commands: