-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmySetup.sh
71 lines (49 loc) · 2.36 KB
/
mySetup.sh
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
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# 上記、必要
# provisionの最後に、自分好みの設定を付け加えるためのBashシェル
# このシェルは、仮想マシンで実行されます。
# 毎回起動されるため、初回以降は内容を削除するか、IF文でチェックしましょう。
# 例) Nginxをインストールし、起動する
# 注意:細かい設定は行なっていません。
# sudo apt-get install nginx-extras
# sudo sudo /etc/init.d/apache2 stop
# sudo sudo /etc/init.d/nginx start
# Composer追加パッケージを追加する
# ペアのif〜fiの間のコードをアンコメントしてください。
# << PHPUnit >> ユニットテストライブラリー
#if [ ! -d /var/www/vendor/phpunit ]
#then
# cd /var/www
# composer require "phpunit/phpunit:3.7.*@dev"
#fi
# << Mockery >> モックフレームワーク
#if [ ! -d /var/www/vendor/mockery ]
#then
# cd /var/www
# composer require "mockery/mockery:dev-master"
#fi
# << Way Generators >> Laravel4向けコードジェネレーター
#if [ ! -d /var/www/vendor/way/generators ]
#then
# cd /var/www
# composer require "way/generators:1.0.*@dev"
# sed -i -e "s+'Illuminate\\\\Workbench\\\\WorkbenchServiceProvider',+'Illuminate\\\\Workbench\\\\WorkbenchServiceProvider',\\n\\t\\t'Way\\\\Generators\\\\GeneratorsServiceProvider',+" app/config/app.php
#fi
# << Juy Profiler >> プロファイラー
#if [ ! -d /var/www/vendor/juy ]
#then
# cd /var/www
# composer require "juy/profiler:dev-master"
# sed -i -e "s+'Illuminate\\\\Workbench\\\\WorkbenchServiceProvider',+'Illuminate\\\\Workbench\\\\WorkbenchServiceProvider',\\n\\t\\t'Juy\\\\Profiler\\\\Providers\\\\ProfilerServiceProvider',+" app/config/app.php
# sed -i -e "s+'Illuminate\\\\Support\\\\Facades\\\\View',+'Illuminate\\\\Support\\\\Facades\\\\View',\\n\\t\\t'Profiler' => 'Juy\\\\Profiler\\\\Facades\\\\Profiler',+" app/config/app.php
# php artisan config:publish juy/profiler
#fi
# << IDE コード補完ヘルパー >>
#if [ ! -d /var/www/vendor/barryvdh ]
#then
# cd /var/www
# composer require "barryvdh/laravel-ide-helper:dev-master"
# sed -i -e "s+'Illuminate\\\\Workbench\\\\WorkbenchServiceProvider',+'Illuminate\\\\Workbench\\\\WorkbenchServiceProvider',\\n\\t\\t'Barryvdh\\\\LaravelIdeHelper\\\\IdeHelperServiceProvider',+" app/config/app.php
# php artisan migrate
# php artisan ide-helper:generate
#fi