GithubHelp home page GithubHelp logo

jdimanche / platformsh-example-magento Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gmoigneu/platformsh-example-magento

0.0 1.0 0.0 18.16 MB

Magento 2 EE example for Platform.sh. For demonstration purposes only.

Home Page: https://platform.sh

License: Open Software License 3.0

PHP 65.22% HTML 20.28% JavaScript 8.63% CSS 5.77% Shell 0.04% VCL 0.01% XSLT 0.06%

platformsh-example-magento's Introduction

Magento 2.2 (Enterprise Edition)

This is a no-thrills example of a minimal repository to deploy a Magento 2 Enterprise Edition instance on Platform.sh. This example is based on using Composer to load up dependencies and get the Magento vendor folders.

BEFORE YOU START

This project requires you to set up some things before you push your code. Click through the initial setup wizard till you get to the Continue later button, then go into your master environment configuration.

1. Project Variables

This project relies on the following project variables being set prior to initial deploy.

  • ADMIN_USERNAME (defaults to “admin”)
  • ADMIN_FIRSTNAME (defaults to “John”)
  • ADMIN_LASTNAME (defaults to “Doe”)
  • ADMIN_EMAIL (defaults to “[email protected]”)
  • ADMIN_PASSWORD (defaults to “admin12”)
  • ADMIN_URL (defaults to “admin”)
  • APPLICATION_MODE (defaults to “production”)

The latter can be changed at any time adjust the Application Mode on the next deploy.

2. MagentoCommerce credentials

This repository requires your Magento credentials to be added. You can do this via the project variables or an auth.json file in the repository. You can get those credentials in your MagentoCommerce account.

auth.json method

"http-basic": {
      "repo.magento.com": {
         "username": "<public-key>",
         "password": "<private-key>"
      }
   }

Project variables method

Create a new environment variable called env:COMPOSER_AUTH, and paste in the same JSON structure as for the auth.json method.

Tick JSON Value and Save.

Push your code

You can now push up your fork of this repository to your Platform.sh project and run the installer.

How it works

Here are the specific files for this example to work on Platform.sh:

.platform/
         /routes.yaml
         /services.yaml
.platform.app.yaml
auth.json
composer.json
magento-vars.php
php.ini

.platform.app.yaml has the basic configuration of our application (we call it mymagento). This configures a Composer based application, that we depend on a database called database and that we what to run a build script and a deploy script during deployment, and also set up some crons and file mounts.

In .platform/routes.yaml we just say that we will redirect www to the naked domain, and that the application that will be serving HTTP will be the one we called mymagento.

In .platform/services.yaml we say we want a MySQL instance, a Redis and a Solr. That would cover most basic Magento needs.

The composer.json will fetch Magento, and some configuration scripts to prepare your application for Platform.sh.

platformsh-example-magento's People

Contributors

gmoigneu avatar guguss avatar xtfer avatar damz avatar lyrixx avatar crell avatar yurii-rw avatar vrann avatar iancassidyweb avatar pjcdawkins avatar jdimanche avatar satknightn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.