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
# blogというプロジェクト名でVer. 5.5のLaravelプロジェクトを作成する方法 | |
$ composer create-project --prefer-dist laravel/laravel blog 5.5 | |
1. composer : composerのプログラム名 | |
2. create-project : この後で指定するvender/projectを生成するようcomposerに指示するコマンド | |
3. --prefer-dist : デフォルトなので省略可能。githubなどのから直接ソースをダウンロードする場合は--prefer-sourceを指定する(利用することは無いと思います) | |
4. laravel/laravel : (vendor)/(project)を指定(vendoer = laravel, project = laravel) Laravelのプロジェクトを作るときに指定 | |
5. blog : プロジェクト名の例、好きな名前を指定する | |
6. 5.5 : バージョン、5.5と指定するとその時の最新の5.5系がインストールされる。省略すると最新のLaravelがインストールされる |
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
# macOS with brew | |
$ brew install homebrew/php/composer | |
# macOS or Linux command line | |
$ curl -sS https://getcomposer.org/installer | php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
# Windows | |
1. https://getcomposer.org/doc/00-intro.md#installation-windows にアクセス | |
2. Composer-Setup.exe をダウンロード |
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
@if( App::environment(['local', 'staging']) ) | |
Vue.config.devtools = true; | |
@endif | |
var vm = new Vue({ | |
(省略) | |
}); |
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 | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
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 | |
# 初期設定 | |
WORK=$HOME/Builds/build-essential | |
PREFIX=$HOME/local | |
export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
# ソースコードのダウンロード | |
if [ ! -d $WORK/src ] ; then | |
mkdir -p $WORK/src |