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
git clone https://github.com/silverstripe/silverstripe-installer.git public | |
git checkout 3.0 | |
rm -rf .git/ | |
git remote add upstream https://github.com/silverstripe/silverstripe-installer.git | |
git flow init -d |
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
# Manually remove the lockfile: | |
sudo rm /var/lib/mongodb/mongod.lock | |
# Run the repair script: | |
sudo -u mongodb mongod -f /etc/mongodb.conf --repair | |
# Run the MongoDb server: | |
sudo service mongodb start | |
# Check the MongoDb server status: |
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
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage : $0 [dir]" | |
exit | |
fi | |
chown -R dev:dev $1 |
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
#!/bin/bash | |
GIT=$(which git) | |
SED=$(which sed) | |
PATH=${1:-$(pwd)} | |
for DIR in $PATH/* | |
do | |
if [ -d $DIR ] | |
then |
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
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage : $0 [dir]" | |
exit | |
fi | |
chown -R dev:dev $1 |
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
location ^~ /assets/ { | |
sendfile on; | |
rewrite ^(.*)$ /framework/main.php?url=$1 last; | |
} |
OlderNewer