-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnvoy.blade.php
63 lines (45 loc) · 1.41 KB
/
Envoy.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@servers(['morplees' => ['morplees.com@morplees.com']])
@task('staging')
echo " -- Starting Staging task"
echo " -- Moving to Staging directory"
cd ~/projects/staging
pwd
echo " -- Updating Repo from Origin"
git checkout staging
git pull --no-rebase
echo " -- Running Composer Install"
../composer.phar install --no-dev
echo " -- Running Artisan Migrate"
php artisan migrate --force
echo " -- Clearing Caches"
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
echo " -- Finished Staging task."
echo "Are there any new items in /public?"
echo "Do you need to run:"
echo "ln -s ~/projects/staging/public/newthing ~/html/staging/newthing"
@endtask
@task('production', ['confirm' => true])
echo " -- Starting Production task"
echo " -- Moving to Production directory"
cd ~/projects/production
pwd
echo " -- Updating Repo from Origin"
git checkout production
git pull --no-rebase
echo " -- Running Composer Install"
../composer.phar install --no-dev
echo " -- Running Artisan Migrate"
php artisan migrate --force
echo " -- Clearing Caches"
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
echo " -- Finished Production task."
echo "Are there any new items in /public?"
echo "Do you need to run:"
echo "ln -s ~/projects/production/public/newthing ~/html/app/newthing"
@endtask