* TryGhost / Ghost 

https://github.com/TryGhost/Ghost - 34.4k

    - v3.27.0 , 2020/07  

    - 2013년 시작

    - 블로그에만 최적화 (blog용)

 

DB : SQLite3

theme : handlebars.js

admin : Ember.js 

에디터 : Markdown 지원



//-----------------------

< 설치 >

 

    - cli 설치

npm install ghost-cli -g

 

    - 로컬에 개발용으로 설치

    https://ghost.org/docs/install/local/

ghost install local

        - 주의! 설치에 12분 걸림, 용량 340M ( node_modules = 329 M )

 

 

        - 실제 운용할 곳에 설치 명령

        https://ghost.org/docs/install/ubuntu/

            ghost install



    - 설치 확인 접속

http://localhost:2368

http://localhost:2368/ghost     // 초기 설정, 관리 페이지





//----------------------------

* ghost cli 명령

https://ghost.org/docs/api/v3/ghost-cli/

 

ghost start // Ghost 시작

ghost stop // Ghost 정지

ghost restart // Ghost 재시작

 

ghost log // Ghost logs 정지

ghost ls // Ghost blogs 정지

 

ghost help  // Ghost 도움말



//----------------------------

< 테마 >

 

Ghost Repository에 속한 Theme

https://github.com/search?q=topic%3Aghost-theme+org%3ATryGhost+fork%3Atrue

Argon

Casper

Editorial

London

Lyra

Massively

Pico

Roon

Starter

Tribeca

theme-ghost-repo.7z
2.84MB
theme-OK.7z
9.07MB



https://ghost.franktheme.com/




* 10+ Free and Open-Source Ghost Themes for 2020(Nodejs)

https://dev.to/klvncruger/10-free-and-open-source-ghost-themes-for-2020-nodejs-493d

 

material-kit-ghost



* 30 Best Free Ghost Themes Beautifully Designed With Simplicity In Mind 2020

https://colorlib.com/wp/best-free-ghost-themes/



* Best Themes for Ghost Platform – Free and Premium

https://makeawebsitehub.com/ghost-themes/

 

    - ok

Saga

 

    - pass

Decode

 

    - error

openwriter

FauxGhost

ghostium




//-----------------------------------------------------------

* DB 변경

    - 기본 SQLite3  -> MySQL

 

    - 설정 파일 수정 , config.json, config.development.json

 

        database: {

            client: 'sqlite3',

            connection: {

                filename: path.join(__dirname, '/content/data/ghost2.db')

            },

 

        -> 변경

 

       database: {

            client: 'mysql',

            connection: {

                host: 'localhost',

                user: 'database-user',

                password: 'database-user-password',

                database: 'database-name',

                charset: 'utf8'

            },




#-------------------------------------------------------------------

* 접속 url 변경

    - 뒤에 붙는 포트 번호 없애기

    - nginx 이용

        - nginx\conf\nginx.conf 파일 수정

 

    server {

        #listen 80;

        server_name ghost.localhost ;

        location / {

              proxy_set_header   X-Real-IP $remote_addr;

              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

              proxy_set_header X-Forwarded-Proto $scheme;

              proxy_set_header   Host      $http_host;

              proxy_pass        http://127.0.0.1:2368;

        }

    }



    - ghost 설정 파일 수정( config.json , config.development.json )

 

{

  "url": "http://ghost.localhost",





//----------------------------------------------------

* 단점

    - UI 언어 변경 안됨

    - 글 카테고리 설정 안됨

    - 글 삭제시 여러개 선택 안됨

    - 블로그에만 최적화

    - 결제 연동 힘듬



반응형
Posted by codens