VPS上にCode-server を、立ち上げて
Flutter For Web の 開発してみた..
VSCode Plugin も 使えます!!
VPS 上に Code-server を立ち上げる
$ apt-get update
$ curl -fsSL https://code-server.dev/install.sh | sh
$ systemctl enable --now code-server@root
// Created symlink /etc/systemd/system/default.target.wants/code-server@root.service → /lib/systemd/system/code-server@.service.
パスワードの設定とか (Optional)
$ vi /root/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8080
auth: password
password: MyFlutter-0213f
cert: false
$ systemctl restart code-server@root
Flutter を インストール
$ apt-get install curl -y
$ apt-get install git -y
$ apt-get install unzip -y
$ apt-get install zip -y
$ git clone https://github.com/flutter/flutter.git
$ export PATH="$PATH:`pwd`/flutter/bin"
$ flutter doctor
Flutter Web を 設定
$ flutter channel beta
$ flutter upgrade
$ flutter config --enable-web
$ flutter devices
サンプルを試してみよう
$ flutter create myapp
$ cd myapp
$ flutter build web
$ flutter run -d web-server --web-port=18080 --web-hostname=0.0.0.0
PS
以下でも書いてます
Conoha の 4GBプランを試しました
快適です
https://www.conoha.jp/vps/?btn_id=header_vps