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 | |
VERSION_FILE=version.txt | |
GIT_PATH=/usr/local/git/bin/git | |
REMOTE_PATH=[full remote path to application root]/$VERSION_FILE | |
LOCAL_PATH=[full local path to application root]/$VERSION_FILE | |
TEST_SERVER=[test ip/domain] | |
PROD_SERVER=[prod ip/domain] | |
if [ -z "$1" ]; 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/sh | |
WEBROOT=/var/www/vhosts/[application folder] | |
GIT_WORK_TREE=$WEBROOT git checkout -f | |
#/usr/bin/git log -1 --pretty=format:'%h' --abbrev-commit > $WEBROOT/version.txt | |
cd $WEBROOT | |
rm -f storage/cache/* | |
echo 'cache cleared\n' | |
rm -f storage/views/* |
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 | |
#MYSQL DATABASE BACKUP | |
#Author: Gary Taylor <[email protected]> | |
#Credentials are stored in a separate file that you can keep them out of your repository while including the dbbackup script itself. | |
#Credentials Location | |
source $PWD/.backup.vars | |
#BACKUP FILE NAMING |
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
<?php | |
//This code is licensed under the terms of the MIT license | |
use GuzzleHttp\Client; | |
use Config; //using Laravel's Config facade | |
/* | |
|-------------------------------------------------------------------------- |
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 | |
apt-get update | |
#Additional Packages | |
apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh | |
wget --no-check-certificate http://install.ohmyz.sh -O - | sh | |
chsh vagrant -s /bin/zsh |
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
<?php | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
class Push extends Command { | |
/** | |
* The console command name. |
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
function serve() { | |
if [[ -n $1 && -n $2 ]] | |
then | |
sudo dos2unix /vagrant/scripts/serve.sh | |
sudo bash /vagrant/scripts/serve.sh $1 $2 | |
else | |
echo "Error: missing required parameters." | |
echo "Usage: " | |
echo " serve domain path" | |
fi |
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
<?php namespace App\Services; | |
/* | |
* | |
* Credit and info about adding singleton to bootstrap/app.php on this thread on Laracasts: | |
* https://laracasts.com/discuss/channels/general-discussion/error-on-overriding-configurelogging-bootstrap-class?page=1#reply-42802 | |
* | |
*/ | |
use Illuminate\Contracts\Foundation\Application; |
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
build_settings: | |
verbose: false | |
prefer_symlink: false | |
ignore: | |
- "vendor" | |
# mysql: | |
# host: "localhost" | |
# user: "root" | |
# pass: "" | |
setup: |
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
language: php | |
php: | |
# - '5.6' | |
- '7.0' | |
# - '7.1' | |
sudo: false | |
before_script: |
OlderNewer