LoginSignup
11
18

More than 5 years have passed since last update.

draw.ioをオフラインで使う

Last updated at Posted at 2016-12-13

そんな使い方をしなければならない雑魚共に捧ぐ

オフライン環境でdraw.ioを動かすのに必要なもの

  • クローンした draw.io のリポジトリ
  • webサーバ

リポジトリをクローン

オンライン環境で draw.io のリポジトリをクローンしておく

git clone https://github.com/jgraph/draw.io.git

webサーバで晒す

そこらに転がっていた適当なオフラインのサーバではすでに httpd が動いていた
クローンした draw.io ディレクトリをまるごとその /opt 下に置いたとする

適当なポートを開いて適当にVirtualHostを切る
名前はまだない

httpd.conf
...

Listen 10080
...

NameVirtualHost *:10080
...

<VirtualHost *:10080>
DocumentRoot /opt/draw.io/war
</VirtualHost>

使う

オフラインで使うときは google drive との連携だとかいった良い機能は使えない
そしてデフォルトだと https
俺はオフラインで使いたい
証明書などなない

オフラインオプションを付け https を無効化して繋げばいい
http://<適当なサーバ>:10080/index.html?offline=1&https=0

以上、よろしくお願いいたします

11
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
18