Skip to content

Instantly share code, notes, and snippets.

@matglas
Created September 11, 2014 21:06
Show Gist options
  • Save matglas/dd43c13d055c572a2686 to your computer and use it in GitHub Desktop.
Save matglas/dd43c13d055c572a2686 to your computer and use it in GitHub Desktop.
Platform reset.sh for kraftwagen skeleton development
#!/bin/bash
# Reset
sudo rm -rf cnf/settings.php
sudo rm -rf cnf/files
sudo rm -rf builds
sudo rm -rf build
sudo rm -rf src
# Create new project.
drush kw-np --human-name="Magnet Dev" --name="magnet_dev" --skeleton="/home/vhosts/magnet_skeleton/dev" --branch="7.x"
ln -s /home/vhosts/magnet_skeleton/magnet /home/vhosts/magnet_skeleton/src/modules/magnet
drush kw-s
# Create new build
drush kw-b
# New install
cd build
drush sql-drop -y
drush kw-id
drush uli
@matglas
Copy link
Author

matglas commented Sep 12, 2014

For this bash script a few vars at the beginning for the params in the drush kw-np call might be nice.

The symlink here is for a personal purpose of linking my own module that is in development too into the new project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment