자유게시판

제목 laraveltricks.com 사이트 복제 후기 입니다.
글쓴이 건곤대나이 작성시각 2015/11/05 17:42:52
댓글 : 4 추천 : 0 스크랩 : 0 조회수 : 39140   RSS

github : https://github.com/CodepadME/laravel-tricks

 

1. github에서 소스 다운로드

git clone https://github.com/CodepadME/laravel-tricks

2. 설치안내에 따라 설치

Requirements

The Laravel-Tricks website requires a server with PHP 5.4+ that has the MCrypt extension installed.

The database engine that is used to store data for this application could be any of the engines supported by Laravel: MySQL, Postgres, SQLite and SQL Server.

Quick Start and Installation

To get started and start making something of your own using this repository as a base: download this repository, create an empty database that this application will use, configure a few settings in the app/config folder and enjoy!

Configuration
  • Open up app/config/database.php and configure connection settings for your database.
  • Configure hostname in bootstrap/start.php file to match your machine's hostname:

    $env = $app->detectEnvironment(array(
    
        'local' => array('your-machine-name'), // Edit this line
    
    ));
    
  • If you want to use Github OAuth for login and registration, make sure to create a Github application first and provide its client ID and client secret to the config in app/config/social.php. Also make sure you're using http://<your-site.com>/login/github for Authorization callback URL

After this simple configuration you can populate the database by running a couple commands shown below.

Installation

CD into the directory of this project and run the following three commands:

  1. composer install
  2. php artisan migrate
  3. php artisan db:seed

This will install all Composer dependencies, create the database structure and populate the database with some sample data so that you could see this project in action.

 

3. 설치후 디버그 옵션주고 http://tricks.qnotes.co.kr 접속

 

4. .htaccess : ExpiresActive not allowed here 에러 발생으로 접속 안되어서 저부분 삭제

5. 사이트는 접속이 되었으나 디버그 옵션을 준 상태라 아주 예쁜 디자인의 친절한 에러페이지 표시

redis 관련 에러였습니다.

http://www.redisgate.com/redis/configuration/redis_start.php

https://www.lesstif.com/pages/viewpage.action?pageId=23757275

두 사이트의 설명대로 redis부분만 따라하니 에러제거 후 사이트 원활히 작동되었습니다.

 

***

설치후 composer의 위력을 느끼게 되더군요.

마치 온라인 주문해서 배송 받는 느낌? 그런 느낌이었습니다.

 다음글 【중국PHPer】안녕하세요! 많은 의문을 부탁 드립니다... (6)
 이전글 php 조금 공부하였는데 코드이그나이터 배워도 될까요? (3)

댓글

변종원(웅파) / 2015/11/09 10:39:24 / 추천 0
전에 그런 말이 있었죠. 프레임워크 시대도 갔다고..
composer로 원하는 모듈을 조합하여 나만의 프레임워크 구성...
그렇게까지 되면 참 좋을 것 같습니다. ^^
건곤대나이 / 2015/11/09 14:44:42 / 추천 0
@웅파

네. 그럼에도 불구하고 그런 현상이 한국사회에서는 안생기고 있죠.
각 개인의 능력이 다른것은 아닐진대 말이죠.

미국에 뛰어난 인물이 있다면
한국에도 뛰어난 인물이 있을텐데

어떻게 된게 IT강국이라는 우리나라는 그런 현상이 안일어나는지 궁금할따름입니다.
 
변종원(웅파) / 2015/11/09 15:32:15 / 추천 0
it composer 이야기에서 사회현상이야기로 넘어가는건 좀 당황스럽네요. ^^;
건곤대나이 / 2015/11/09 16:03:11 / 추천 0