/Ghost

The platform for professional publishers

Primary LanguageJavaScriptMIT LicenseMIT

Cựu chiến binh

  • Setup ghost admin repo:
cd core/client
git remote rename origin upstream
git remote add origin git@github.com:hoaivan/Ghost-Admin.git
  • Hoặc nếu repo core/client ko tự kéo về thì:
git submodule add https://github.com/hoaivan/Ghost-Admin
cd core/client
git submodule init
git submodule update
  • Build ghost:
yarn setup
  • Nếu xảy ra error không cài được repo ghost admin, kéo lại code và chạy lệnh:
yarn cache clean
yarn setup
  • Chạy thử ghost: Edit file config.development.json ở thư mục root của ghost để trỏ vào db đang dùng.
yarn start
  • Cài đặt news-api sau khi chạy thành công ghost: Edit docker-compose.yml để trỏ vào thư mục ghost.
docker-compose up

PULL ALL SUB REPO: git submodule update --init --recursive

  • Cách tạo link quảng cáo:

    1. Tạo markdown
    2. Add image
    3. Chọn image add url
  • Clear db: truncate TABLE ghost.posts_tags; truncate TABLE ghost.posts_authors; truncate TABLE ghost.tags; truncate TABLE ghost.posts;

    import failed ID=2555

  • Chay prod:

    1. NODE_OPTIONS="--max-old-space-size=1024"
    2. grunt prod de build client

 

Ghost

Fiercely independent, professional publishing

A fully open source, powerful platform for building and running modern publications,
we power serious blogs, magazines and journalism from DuckDuckGo to OpenAI & Sky News.


Ghost.org | Features | Showcase | Forum | Documentation | Contributing | Donate | Twitter

Downloads Latest release Build status Contributors OpenCollective

 



 


 

Ghost(Pro)

The easiest way to deploy Ghost is with our official Ghost(Pro) managed service. You can have a fresh instance up and running in a couple of clicks with a worldwide CDN, backups, security and maintenance all done for you.

Not only will it save you hours of maintenance per month, but all revenue goes to the Ghost Foundation, which funds the maintenance and further development of Ghost itself. So you’ll be supporting open source software and getting a great service! Alternatively if you'd like to support us, we're very grateful to all our backers on Open Collective ❤️

 

Quickstart Install

If you want to run your own instance of Ghost, in most cases the best way is to use our CLI tool

$ npm install ghost-cli -g

 

Then, if installing locally add the local flag to get up and running in under a minute - Local install docs

$ ghost install local

 

or on a server run the full install, including automatic SSL setup using LetsEncrypt - Production install docs

$ ghost install

 

Check out our official documentation for more information about our recommended hosting stack & properly upgrading Ghost, plus everything you need to develop your own Ghost themes or work with our API.

 

Getting Help

You can find answers to a huge variety of questions, along with a large community of helpful developers over on the Ghost forum - replies are generally very quick. Ghost(Pro) customers also have access to 24/7 email support.

To stay up to date with all the latest news and product updates, make sure you subscribe to our blog — or your can always follow us on Twitter, if you prefer your updates bite-sized and facetious. 🎷🐢

 

Contributors & Advanced Developers

For anyone wishing to contribute to Ghost or to hack/customise core files we recommend following our full development setup guides: General Contributor Guide | Developer Setup Instructions | Admin Client development guide

 

Copyright & License

Copyright (c) 2013-2019 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.