Skip to content

Instantly share code, notes, and snippets.

@michael-bouvy
Last active January 4, 2016 15:09
Show Gist options
  • Save michael-bouvy/8639331 to your computer and use it in GitHub Desktop.
Save michael-bouvy/8639331 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p /var/www/rbschange/repository/framework
cd /var/www/rbschange/repository/framework
git clone https://github.com/RBSChange/framework framework-x.y.z
cd ../..
ln -s repository/framework/framework-x.y.z framework
echo "default" > profile
vi change.xml # put appropriate content
vi change.properties # put appropriate content
sudo chgrp www-data .
sudo chmod 775 .
sudo -u www-data php framework/bin/change.php init-project
sudo -u www-data php framework/bin/change.php init-webapp
vi config/project.default.xml # configure properly
mysql -y your_user -p # create database
sudo -u www-data php framework/bin/change.php generate-database
sudo -u www-data php framework/bin/change.php reset-database
cd themes
git clone https://github.com/RBSChange/themes.default default
cd ..
sudo -u www-data php framework/bin/change.php theme.install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment