zeitを使ってみる
zeitなるものを知った。 ちょっとしたアプリケーション開発に良さそうなので、機能を試してみる。
こちらを参考に試してみる。(@mac book)
初期設定
$ npm i -g now /usr/local/bin/now -> /usr/local/lib/node_modules/now/download/dist/now > now@11.4.6 postinstall /usr/local/lib/node_modules/now > node download/install.js > For the source code, check out: https://github.com/zeit/now-cli > Downloading Now CLI 11.4.6 [====================] 100% /usr/local/lib └── now@11.4.6 $ which now /usr/local/bin/now
アプリケーション作る
$ mkdir my-web-app $ cd my-web-app $ vi index.html # 適当に書く
デプロイ
$ now > No existing credentials found. Please log in: > We sent an email to xxxxxxxx@gmail.com. Please follow the steps provided inside it and make sure the security code matches XXXXXXXXXX. → ここでメールアドレス確認。verify ✔ Email confirmed ✔ Fetched your personal details > Ready! Authentication token and personal details saved in "~/.now" # 再度 $ now > Deploying ~/zeit_now/my-web-app under xxxxxxxx@gmail.com > Your deployment's code and logs will be publicly accessible because you are subscribed to the OSS plan. > NOTE: You can use `now --public` or upgrade your plan (https://zeit.co/account/plan) to skip this prompt > https://my-web-app-qdhigyxidt.now.sh [in clipboard] [3s] ☆ > Deployment complete!
☆のURLを開く
デプロイの状況確認
$ now ls > 1 total deployment found under xxxxxxxxx@gmail.com [743ms] > To list more deployments for an app run `now ls [app]` app url inst # type state age my-web-app my-web-app-qdhigyxidt.now.sh - STATIC READY 16m
ドメイン
- アプリケーションを変更し、デプロイし直すとurlが変更される
- aliasをはるようのドメインは無料のものはなく、買わなければいけないみたい・・
一旦ここまで・・