Skip to content

Platform.sh Magento 2 Community Edition template for Platform.sh.

License

Notifications You must be signed in to change notification settings

improper/magento2ce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento 2 Community Edition for Platform.sh

Deploy on Platform.sh

This template builds Magento 2 CE on Platform.sh. It includes additional scripts to customize Magento to run effectively in a build-and-deploy environment. A MariaDB database and Redis cache server come pre-configured and work out of the box. The installer has been modified to not ask for database information. Background workers are run using a worker container rather than via cron.

Magento is a fully integrated ecommerce system and web store written in PHP. This is the Open Source version.

Features

  • PHP 7.2
  • MariaDB 10.2
  • Redis 3.2
  • Dedicated worker instance for background processing
  • Automatic TLS certificates
  • Composer-based build

Post-install

  1. The site comes pre-configured with an admin account, with username/password of admin/admin123. Login at /admin in your browser. You will be required to update the password the first time you log in.

Customizations

The following changes have been made relative to Magento 2 as it is downloaded from Magento.com. If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • An additional front controller is included in pub/static-versioned.php to serve static files.
  • A custom deploy script, written in Python, is provided in the deploy file and called from the deploy hook in .platform.app.yaml. The deploy script handles installing Magento on first run, including populating the administrator account. It also handles Magento self-updates on normal point release updates. Do not modify or remove this file.
  • The installer has been patched to not ask for information that is already provided by Platform.sh, such as database credentials, file paths, or the initial administrator account. These changes should have no impact post-installation. See the patch file for details.
  • An additional script has been added to force the cron process to not start background workers. See disable-cron-workers.php for details. It runs on deploy and modifies the .config/env.php file.
  • A worker container is also created to handle background processing. That means that Magento cannot be run on a production plan smaller than Medium.

References

About

Platform.sh Magento 2 Community Edition template for Platform.sh.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 82.5%
  • HTML 8.7%
  • JavaScript 5.4%
  • Less 2.8%
  • CSS 0.6%
  • VCL 0.0%