'laravel'에 해당되는 글 2건

노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.



3. OctoberCMS , Creating Themes




1) 테마 만들기 ( myoctober.app:8000/backend , homestead설정 사용시 )



생성하기

- CMS -> Front-end theme -> 'Create a new blank theme'


속성 설정


- Name : Olympos

- Directory name : olympos

- Description : New starter theme

- Author : Ivan Doric

- Homepage : http://myoctober.app:8000






*테마 생성 위치 : themes/olympos/theme.yaml



활성화 - Activate Theme ( 신규 테마로 변경 )

: CMS->Front-end theme ->'Activate' Olympos





2) Layout 생성하기 : default.htm



메뉴 : CMS -> Layouts -> +Add : default.htm


위치 : themes/olympos/layouts/default.htm



* 기존 demo/layouts/default.htm를 copy하고, header/footer는 일단 삭제


* css : style.css 신규 생성

  <link href="{{ 'assets/css/style.css'|theme }}" rel="stylesheet">

      


* js : app.js는 신규 생성 ( jquery.js는 복사 )

        <script src="{{ [
            'assets/js/jquery.js', 'assets/js/app.js',
            ]|theme }}"></script>




3) Homepage 생성하기 : homepage.htm



메뉴 : CMS -> Layouts -> +Add : homepage.htm ( URL : / )


위치 : themes/olympos/pages/homepage.htm


Markup :

<h1>This is our homepage</h1>


4) 실행 결과

 






* 브라우저 View Source결과 ( script는 단일 파일로 변경되어, 요청 traffic을 감소 시킴 )

<!-- Scripts -->
<script src="http://myoctober.app:8000/combine/ffc6422ecc7902bad467abb69edcd8cb-1484897286"></script>

동영상 (영문 강좌)

     - watch-learn.com october-cms


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


OctoberCMS on Laravel(라라벨) Homestead



1) 소개


OctoberCMS는 무료이고, 오픈 소스이며, 자체 호스팅형의 CMS 플랫폼으로 Laravel PHP 프레임웍을 기초로 한다.


2번째 속성으로 Simple하고 모듈형 CMS는 개발자에 의해 확장되며, 정확하고 아름다운 UI를 갖고 있다.



Getting back to basics


 https://octobercms.com/blog/post/getting-back-to-basics


"많은 유명한 CMS들은 복잡하고 뒤얽혀진 시스템이 되었으며, 만약에 안을 들여다 보면 꽤 실망하게 될 것이다..."




2) OctoberCMS 설치 (신규, 추가)


vagrant를 실행하고, October project를  설치한다. ( 신규 프로젝트 생성 )

 
    > vagrant up
    > vagrant ssh
    > cd Code
    
    >
    > composer create-project october/october myoctober dev-master -vvv
    >
myoctober :  선호하는 폴더명/Domain명으로 대체


*비슷한 설명 : https://octobercms.com/docs/console/commands#console-install-composer




3) hosts파일에 등록하기 ( 접근용 Domain )

  192.168.10.10    myoctober.app


4) .homestead/Homestead.yaml 수정하기

   sites:
        - map : myoctober.app   
          to : /home/vagrant/Code/myoctober
    databases:
        - myoctober


5) vagrant 재시작

 
    > vagrant reload --provision
    > vagrant ssh
    > cd Code

* Oracle VM Virtual Box가 무반응시에 Oracle VM Virtual Box관리자 화면에서 시작/종료를 반복후에 위의 reload명령어를 수행한다.



* vagrant reload --provision 옵션 설명 : https://www.vagrantup.com/docs/cli/reload.html



6) 설치 결과를 확인하는 접속





* 단일 장비에서는 설정을 console명령으로 직접 변경 가능하다,

   DB 선택, DB 계정, Domain명등을 설정할 수 있다


    > php artisan October:install



아래는 backend 접속을 위한 수동 설정을 다룬다.


6) DB 설정


MySQL(33060), Postgres(54320)을 사용하며, username과 password는 homestead/secret이다.



7) /config/database.php를 수정

    'default' => 'pgsql', // 'mysql'

from

        'pgsql' => [
            'driver'   => 'pgsql',
            'host'     => 'localhost',
            'port'     => '',
            'database' => 'database',
            'username' => 'root',
            'password' => '',
            'charset'  => 'utf8',
            'prefix'   => '',
            'schema'   => 'public',
        ],


to

 
        'pgsql' => [
            'driver'   => 'pgsql',
            'host'     => env('DB_HOST'),
            'port'     => env('DB_PORT'),
            'database' => env('DB_DATABASE'),
            'username' => env('DB_USERNAME'),
            'password' => env('DB_PASSWORD'),
            'charset'  => 'utf8',
            'prefix'   => '',
            'schema'   => env('DB_SCHEMA'),
        ],

.env 파일 만들기 ( 위치 : project root )

DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=myoctober
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_SCHEMA=public


데이타베이스 migrate (터미널상에서)

> cd myoctober > php artisan october:up


octoberCMS의 backend접속 하기

> http://myoctober.app:8000/backend
> admin/admin





원문 : https://renatio.com/blog/install-octobercms-laravel-homestead

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,