티스토리 뷰
1. Composer 활용 laravel 실행파일 설치
$ composer global require "laravel/installer=~1.1"
이후 laravel 실행파일 경로는
Linux Shell : ~/.composer/vendor/bin
Windows Git Bash : ~/AppData/Roaming/Composer/vendor/bin
위와같은 경로이므로
$ vi ~/.bash_profile
export PATH=~/AppData/Roaming/Composer/vendor/bin:$PATH
하여 경로 추가 후
$ source ~/.bash_profile
반영하면 이후 명령줄에서 바로 laravel 호출이 가능해진다.
2. 프로젝트 생성
$ composer create-project laravel/laravel
my-first-app --prefer-dist 4.2
laravel/laravel = Dependency/Package (https://packagist.org/ 검색)
my-first-app = 프로젝트명 = 현재 cwd 기준 생성될 디렉토리명
3. 프로젝트의 laravel 버젼 확인
(프로젝트명을 laravel_test 로 했을 경우)
프로젝트의 루트경로에서 아래 명령줄 실행
$ php artisan -V
결과: Laravel Framework version 5.0.6
4. 프로젝트 가상서버에서 실행
$ php artisan serve
Laravel development server started on http://localhost:8000
브라우저를 열고 위 가상서버 URL 입력하여 로딩!
참고
http://laravel.com/docs/4.2
https://laracasts.com/series/laravel-5-from-scratch/episodes/2
'웹프로그래밍 > PHP' 카테고리의 다른 글
CodeIgniter Form action POST the action ... now allowed Error (2) | 2015.03.19 |
---|---|
PHP Composer package version 표현법 (0) | 2015.02.25 |
그누보드 Youtube iframe embed code 보이도록 뷰스킨 패치 (0) | 2015.01.29 |
그누보드4 가변 파일 (다중 파일 업로드) 웹접근성 개선 (0) | 2015.01.12 |
PHP 다국어 지역화 gettext() *.po *.mo (1) | 2015.01.06 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- mssql
- sencha touch
- iphone
- nodejs
- Mac
- JQuery
- IE
- nginx
- 워드프레스
- Docker
- PHP
- ASP
- javascript
- Debug
- iis
- Wordpress
- IOS
- CSS
- macos
- 안드로이드
- JSON
- 한글
- centos
- API
- laravel
- classic asp
- Linux
- git
- Prototype
- Android
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함