Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 71eeabb May 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update to latest upstream May 20, 2019
.platform Update to latest upstream May 20, 2019
app Update to latest upstream May 20, 2019
bin Update to latest upstream May 20, 2019
dev Update to latest upstream May 20, 2019
generated Update to latest upstream May 20, 2019
lib Update to latest upstream May 20, 2019
phpserver Update to latest upstream May 20, 2019
pub Update to latest upstream May 20, 2019
setup Update to latest upstream May 20, 2019
var Update to latest upstream May 20, 2019
vendor Update to latest upstream May 20, 2019
.gitignore Update to latest upstream May 20, 2019
.htaccess Update to latest upstream May 20, 2019
.htaccess.sample Update to latest upstream May 20, 2019
.php_cs.dist Update to latest upstream May 20, 2019
.platform.app.yaml Update to latest upstream May 20, 2019
.platform.template.yaml Update to latest upstream May 20, 2019
.travis.yml Update to latest upstream May 20, 2019
.user.ini Update to latest upstream May 20, 2019
CHANGELOG.md Update to latest upstream May 20, 2019
COPYING.txt Update to latest upstream May 20, 2019
Gruntfile.js.sample Update to latest upstream May 20, 2019
LICENSE.txt Update to latest upstream May 20, 2019
LICENSE_AFL.txt Update to latest upstream May 20, 2019
README.md Update to latest upstream May 20, 2019
auth.json.sample Update to latest upstream May 20, 2019
composer.json Update to latest upstream May 20, 2019
composer.lock Update to latest upstream May 20, 2019
deploy Update to latest upstream May 20, 2019
grunt-config.json.sample Update to latest upstream May 20, 2019
index.php Update to latest upstream May 20, 2019
nginx.conf.sample Update to latest upstream May 20, 2019
package.json.sample Update to latest upstream May 20, 2019

README.md

Magento 2 Community Edition example for Platform.sh

This project provides a starter kit for Magento 2 Community Edition (M2CE) projects hosted on Platform.sh. It is strongly recommended that M2CE projects on Platform.sh start from this repository as Magento does require some modification to run correctly.

Starting a new project

To start a new project based on this template, follow these 3 simple steps:

  1. Clone this repository locally. You may optionally remove the origin remote or remove the .git directory and re-init the project if you want a clean history.

  2. Create a new project through the Platform.sh user interface and select "Import an existing project" when prompted.

  3. Run the provided Git commands to add a Platform.sh remote and push the code to the Platform.sh repository.

That's it! Your Magento site will deploy and you'll be able to view it in a browser. Note that as part of the setup process the admin account is already created for you. The initial username admin has a password of admin123. You will be required to change it the first time you login (at /admin in the browser).

Using as a reference

If you have an existing Magento 2 CE site you need to prepare for running on Platform.sh, the following files are the most important:

  • The .platform.app.yaml file and the .platform directory, which tell the system how to assemble your containers.
  • The deploy script, which is a Python script that runs the Magento installer (on first run) and runs Magento's built-in database updates (on subsequent runs).
  • The app/etc/local.xml file.
  • The pub/static-versioned.php file, which provides an alternative front-controller for static files.

There is also a patch file needed to make the installer run correctly.

You can’t perform that action at this time.