Giter VIP home page Giter VIP logo

oxid-surf-deployment's Introduction

Oxid eShop Surf deployment

Run tests and linting

This library contains an application that allows the deployment of Oxid eShops with TYPO3 Surf.

How to use it

Simply add it as a composer dependency to your Surf project:

composer require de-swebhosting/oxideshop-surf-deployment

Then create a deployment using the OxidEshop application:

$application = new De\SWebhosting\OxidSurf\Application\OxidEshop();
$deployment->addApplication($application);

$application->setOption('branch', 'develop');
$application->setOption('repositoryUrl', '[email protected]:my/oxid-project-repo.git');
$application->setDeploymentPath('/var/www/my-oxid-shop');

$node = new Node('myhost');
$node->setHostname('user@my-ssh-host');

$application->addNode($node);

Prepare your project

This deployment assumes that your project is based on the oxid-esales/oxideshop-project Composer package as described here

This deployment assumes, that you included an override config with your database and path configurations. Put this at the end of the source/config.inc.php file:

if (file_exists(__DIR__ . '/config.inc.override.php')) {
    include __DIR__ . '/config.inc.override.php';
}

Prepare your environment

On the server you deploy to create a config.inc.override.php at <deployment_root>/shared/source/config.inc.override.php configuring the database connection and the paths of the instance:

$this->dbHost = 'localhost';
$this->dbName = '<db_name>';
$this->dbUser = '<db_user>';
$this->dbPwd = '<db_pass>';
$this->sShopURL = 'https://my-shop-url.tld';
$this->sSSLShopURL  = 'https://my-shop-url.tld';
$this->sShopDir = '/<deployment_root>/releases/current/source/';
$this->sCompileDir = '/<deployment_root>/releases/current/source/tmp/';

You also need to create shared directories for files that should be persisted during deployments:

mkdir -p <deployment_root>/shared/out/contents
mkdir <deployment_root>/shared/out/downloads
mkdir <deployment_root>/shared/out/pictures

Enjoy

I hope this package works for you.

Feel free to open an issue to report errors or request features.

oxid-surf-deployment's People

Contributors

astehlik avatar

Watchers

 avatar  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.