Automatically deploying

without losing sleep

Ike Devolder


@BlackIkeEagle

DevOps / developer @ Studio Emma

Studio Emma


@studioemma

Magento Silver Solution Partner

Pimcore Gold Solution Partner

topics

  • our way of hosting
  • tools used
  • the setup
  • the flow

topics

  • our way of hosting
  • tools used
  • the setup
  • the flow

# root

topics

  • our way of hosting
  • tools used
  • the setup
  • the flow

topics

  • our way of hosting
  • tools used
  • the setup
  • the flow

add build files to project

push to a repo

create unittest plan

create package plan

create tag and see it build

victory package ready

create a deploy project

see your deploy running after tagging

with nice notifications

topics

  • our way of hosting
  • tools used
  • the setup
  • the flow

preparation on the build server

  • composer install --no-dev --opimize-autoloader
  • clean install magento
  • magento cache:flush
  • replace tables with data from target setup
    • core_config_data
    • translation
    • store_website
    • store_group
    • store
  • magento setup:upgrade
  • magento setup:static-content:deploy
  • magento setup:di:compile

package is a zip file

regular zipfile *with* symlinks

server folder structure

actions done on the server

  • part of the folder sturcture is created
  • symlink env.php
  • symlink media
  • harden permissions
  • magento setup:upgrade --keep-generated
  • magento indexer:reindex
  • magento setup:cron:run
  • magento cron:run
  • magento cache:flush

on success the document root configuration is changed

primo victoria

Questions?

https://joind.in/talk/0191b

Ike Devolder

joindin qr

@BlackIkeEagle

DevOps / developer @ Studio Emma

PHP-WVL / Docker West / Arch Linux Trusted User

studioemma  php-wvl  docker west  arch linux

Thanks.

https://joind.in/talk/0191b

Ike Devolder

joindin qr

@BlackIkeEagle

DevOps / developer @ Studio Emma

PHP-WVL / Docker West / Arch Linux Trusted User

studioemma  php-wvl  docker west  arch linux

Image credits

  • https://commons.wikimedia.org/wiki/File:KUKA_Industrial_Robots_IR.jpg
  • https://pixabay.com/en/photos/hosting/
  • https://design.ubuntu.com/brand/ubuntu-logo
  • https://commons.wikimedia.org/wiki/File:Apache-Ant-logo.svg
  • https://github.com/odb/official-bash-logo
  • https://www.atlassian.com/software/bamboo