Git Product home page Git Product logo

drupalcms-azure's Introduction

Drupal for Azure App Service Deploy to Azure

This template support MySQL in-app feature on App service. Click on Deploy to Azure button above to start deployment.

Once the app is successfully deployed and the drupal installer has completed the installation , update settings.php to use environement variable whether you are using ClearDB MySQL database or MySQL in-app on Azure app service.

        $connectstr_dbfullhost = '';
        $connectstr_dbhost = '';
        $connectstr_dbname = '';
        $connectstr_dbusername = '';
        $connectstr_dbpassword = '';
        foreach ($_SERVER as $key => $value) {
            if (strpos($key, "MYSQLCONNSTR_") !== 0) {
                continue;
            }

            $connectstr_dbfullhost = preg_replace("/^.*Data Source=(.+?);.*$/", "\\1", $value);
            $connectstr_dbhost = substr($connectstr_dbfullhost,0,strpos($connectstr_dbhost,":"));
            $connectstr_dbname = preg_replace("/^.*Database=(.+?);.*$/", "\\1", $value);
            $connectstr_dbusername = preg_replace("/^.*User Id=(.+?);.*$/", "\\1", $value);
            $connectstr_dbpassword = preg_replace("/^.*Password=(.+?)$/", "\\1", $value);
        }

         $connectstr_port =   getenv('WEBSITE_MYSQL_PORT');
         if (empty($connectstr_port)){
               $connectstr_port= 3306;
         }
           
        $databases['default']['default'] = array (
          'database' => $connectstr_dbname,
          'username' => $connectstr_dbusername,
          'password' => $connectstr_dbpassword,
          'prefix' => '',
          'host' => $connectstr_dbhost,
          'port' => $connectstr_port ,
          'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
          'driver' => 'mysql',
        );

drupalcms-azure's People

Contributors

brown-hub avatar mksuni avatar song2017 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drupalcms-azure's Issues

Updates

The Drupal installation tells me that an update to release 8.3.2 should be performed, since among other improvements and corrections it also fixes security bugs.
BTW: How often does the software get updated? Do there exist some maintenance plans?

Deploying app on Azure error

The following error appears after provisioning the web app on Azure: http://pastebin.com/Yv3rZday

Following this error, the site installation completes, but no theme appears, and shortly thereafter the site begins to fail.

Could you please take a look? Thank you!

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.