Skip to content
/ drupie Public

Series of scripts to make multisite Drupal development on local machine easier.

Notifications You must be signed in to change notification settings

rhodul/drupie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Series of scripts to make multi-install Drupal development on local machine easier.

These scripts will work on Ubuntu. Other distributions may need some modifications.

License:
========
None at all. Do whatever you want with this.

Warranty:
=========
Absolutely none! Zero. Zilch.
You are responsible for whatever you do!

Why Puppet?
===========
Because Puppet defines and maintains the state of your machine.
This way the scripts may be run many times over without breaking anything.

Scripts:
========
install
-------
This will install LAMP+myPhpAdmin+Puppet and configure them.
This script should only be required once in a life time.
Usage:
  sudo ./install
Read and follow the prompts.
After this http://localhost/phpmyadmin/ should work.

mysite.pp
---------
Mysite.pp is a template to define your own site. Make a copy (you can rename it too) and edit to your liking. Also you should keep this file in your git.
Once done simply run (you can run it from wherever mysite.pp is):
  sudo FACTER_mysqlpwd=<bigsecret> puppet apply mysite.pp
This will ensure Drupal files and everything AND will INSTALL drupal. That's why MySql root's password is provided.
The installation will create database with the name of your site and the credentials will be <nameOfYourSite>/<autoGeneratedPassword>.
Drupal user admin/admin will also be created.

Once Drupal is installed, you can simply run the following over and over again:
  sudo puppet apply mysite.pp
  
updatemodule
------------
Run this if you want to update existing contributed module.
This will update module 'ctools' on 'site1':
  sudo updatemodule site1 ctools
It will also create a file ~\site1(current date and time).sql which is a DB dump before the module update.
To update drupal core itself run:
  sudo updatemodule site1 drupal

About

Series of scripts to make multisite Drupal development on local machine easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published