Last active
November 7, 2017 17:32
-
-
Save aschiwi/5848790 to your computer and use it in GitHub Desktop.
Example install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Shell and drush commands to set up (or some part of it) the new site. | |
# | |
# Go to sites/all/scripts (e.g. cd sites/all/scripts) and type "sh install.sh" | |
# in your console/shell/Terminal. | |
# | |
# The commands are built to run once, e.g. to set some symlinks, but shall be | |
# designed to not break other commands on the second run. | |
# | |
################################################################################ | |
# Change directory to drupal root | |
cd ../../.. | |
# Build symlinks for local environment. | |
echo "Create symlinks:" | |
ln -s .htaccess.local .htaccess | |
ln -s settings.local.php sites/default/settings.php | |
# Install Drupal | |
drush site-install minimal -y | |
# Check drupal status | |
drush status | |
# Create Login | |
echo "Use the following link to log in" | |
drush uli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment