Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Ghostのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Ghost
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:ウェブアプリケーション]] [[en:Ghost]] Ghost はフリーでオープンソースのブログプラットフォームです。JavaScript で書かれており MIT ライセンスで配布されています。個人のブロガーによるオンラインパブリッシングを簡単にするために作られました。 == AUR インストール == {{AUR|ghost}}{{Broken package link|パッケージが存在しません}} を[[インストール]]して {{ic|/etc/webapps/ghost/config.js}} を編集してください。そして {{ic|ghost.service}} を[[起動]]します。気に入ったら、システムの起動時に自動的に実行されるように[[有効化]]してください。 最終的な設定は http://127.0.0.1:2368/ghost から行います。 == カスタムインストール == === 要件 === [[nginx]] をウェブサーバーとして Ghost をインストールする方法を説明します。 {{Pkg|nginx}}, {{Pkg|npm}}, {{Pkg|sqlite}}, {{Pkg|python2}}, {{Grp|base-devel}}, {{Pkg|unzip}}, {{Pkg|nodejs}} を[[インストール]]してください。 === インストール === ウェブサーバーがブログのプロキシとなるように設定します。nginx の設定ファイル ({{ic|/etc/nginx/nginx.conf}}) の server ブロックの、location を以下のように変更します: location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:2368; } ghost 用に ghost ユーザーとディレクトリを作成してください: $ useradd -r -d / -s /bin/false ghost $ mkdir -p /srv/http/example.org {{ic|nginx.service}} を[[起動]]します。 {{AUR|ghost}}{{Broken package link|パッケージが存在しません}} をインストールするか ghost.org から最新版の Ghost を取得して、手動でインストールしてディレクトリを移動してください: $ curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip $ unzip ghost.zip -d /srv/http/example.org $ cd /srv/http/example.org 一時的に python のパスを python 3 から python 2 に変更します: ダミーフォルダを作成: $ mkdir ~/bin python から python2 へのシンボリックリンクと設定スクリプトを追加してください: $ ln -s /usr/bin/python2 ~/bin/python $ ln -s /usr/bin/python2-config ~/bin/python-config 最後に PATH 変数の最初に新しいフォルダを記述します: $ export PATH=~/bin:$PATH {{Note|[[環境変数]]の変更は永続的ではなく、現在のターミナルセッションでのみ有効です。}} Ghost をインストールします。[[Arch User Repository]] から Ghost をインストールした場合は必要ありません: $ npm install --production Ghost を起動: $ npm start --production 完了です。ブラウザを起動して 127.0.0.1 または Ghost をインストールしたデバイスの IP を開いて下さい。 === サービスの作成 === {{Note|[[Arch User Repository]] から Ghost をインストールした場合はこの手順は不要です。}} Ghost をバックグラウンドで実行したい場合、サービスを作成する必要があります。ローカルシステム用に新しいサービスユニットを[[Systemd#ユニットファイル|作成]]してください: {{hc|/etc/systemd/system/ghost-example-com.service|<nowiki> [Unit] Description=Ghost blog example.org After=network.target [Service] Type=simple PIDFile=/run/ghost-example-org.pid WorkingDirectory=/srv/http/example.org User=ghost Group=ghost ExecStart=/usr/bin/npm start --production /srv/http/example.org ExecStop=/usr/bin/npm stop /srv/http/example.org StandardOutput=null StandardError=null [Install] WantedBy=multi-user.target </nowiki>}} ブログディレクトリの所有者を変更して Ghost を起動: $ chown -R ghost:ghost /srv/http/example.org $ systemctl start ghost-example-com 全てが問題ないようでしたら、新しいユニット {{ic|ghost-example-com}} とウェブサーバー {{ic|nginx.service}} を[[有効化]]します。
Ghost
に戻る。
検索
検索
Ghostのソースを表示
話題を追加