GithubHelp home page GithubHelp logo

fotuzlab / dvvm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28.49 MB

License: GNU General Public License v2.0

Dockerfile 0.01% Ruby 0.02% JavaScript 3.51% Shell 0.20% PHP 93.36% CSS 1.48% HTML 1.43%

dvvm's Introduction

dvvm Drupal 8 website

Vagrant/Drupalvm enabled Drupal 8 Framework.

This repository is configured to be run on an Ubuntu 16.04 virtual machine powered by Vagrant.

REQUIREMENTS

  1. Vagrant
  2. Access to github repository
  3. Patience

SETUP

  1. Clone this repo on your machine
  2. Copy docroot/sites/default/dv.settings.local.php to docroot/sites/default/settings.local.php
  3. Get dv_credentials.json from a peer and place it in default directory. The path of the file should be docroot/sites/default/dv_credentials.json
  4. From any directory, run vagrant up. First time set up may take 15-20 minutes but subsequent provisioning will be lot faster.
  5. Once done, go to http://local.dvvm.dvdev.net and start building :)

USEFUL COMMANDS

C1. Login inside VM - vagrant ssh C2. Clear drupal cache from commandline - C1 + drush cr C3. Add linux packages to VM for testing (like upgrading PHP) - C1 + apt install <package name> C4. Reset/Provision VM - vagrant reload --provision C5. Destroy VM - vagrant destroy C6. Suspend VM temporarily(sometimes to save resources on physical machine) - vagrant halt

IMPORTING DATABASE

From Matrix

Method A (Import database only):

  1. vagrant ssh
  2. dv.db.sandbox <sandbox name> e.g. dv.db.sandbox pr123 Note:- If no <sandbox name> is provided, database will be imported from develop sandbox.

Method B (Import database and provision VM):

  1. SBOX=<sandbox name> vagrant reload --provision

From Acquia

To be done.

CONNECTING TO REMOTE DATABASE

  1. Open docroot/sites/default/settings.local.php with text editor of your choice.
  2. Set $testing and $remote_testing to TRUE
  3. Set $sandbox to name of the sandbox e.g. develop or pr261
  4. Run drush cr inside VM to clear cache if there is any error. If error persists, check your VPN connection.

TESTING ON LOCAL

If you are testing features on local, you may want to disable dev tools, debug etc and enable Drupal caching and memcached to replicate production to and extent. To do so, change $testing in docroot/sites/default/settings.local.php to TRUE. Note:- Keep $remote_testing to FALSE.

TROUBLESHOOTING

  1. Ensure settings.local.php and dv_credentials.json exist in sites/default directory.

CUSTOMIZE

  1. Vagrant machine configuration can be modified at .drupalvm/config.yml. For all configurable settings, refer .drupalvm/default.config.yml (but do not modify this file).
  2. Vhosts can be changed in .drupalvm/config.yml by changing the project_name on line 1. Only use lowercase names without any special characters and spaces. This will spin up "http://local.projectname.dvdev.net".

HOW TO USE THIS REPO

  1. Clone this repo. Run git clone [email protected]:fotuzlab/dvvm.git
  2. Delete .git directory. Run rm -rf .git
  3. Replace files under docroot with files of your project. composer.json defaults to drupal 8 setup. You may need to modify based on drupal version of your project.
  4. Run composer update && composer install
  5. Run git init to initialise git.
  6. Run git remote add origin <ssh url of github repo>
  7. Run git add . && git commit -am "Initial commit" && git push origin master
  8. Run git checkout -b develop && git push origin develop. Develop serves as the active development branch.
  9. Get the vm up and running. Run vagrant up.

dvvm's People

Contributors

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