1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GCE(Google Compute Engine)を使ってみたい!〜htmlファイルを公開する編〜

Posted at

ついに!htmlファイルを公開します。
と思ったらすごーーく簡単に公開できてしまいました。

手順

  1. google cloud consoleの左のタブから、 ストレージのStrage を選択。
  2. バケットを作成
  3. ローカルで作成したhtmlファイルをドラック&ドロップでアップロード。
  4. アップロードしたhtmlファイルの一番右のタブ、 一般公開で共有する にチェックを入れる。
    testupl____バケット_-_welcomex59th.png
  5. 4をすると 公開リンク と出てくる。こちらをクリックすると、別タブで自分が書いたhtmlが公開されています。

疑問

  • このために必要だと思ってやった、ubuntuでnginxを入れるなどはなんだったのか?これを設定しなくてもStrageにアップロードして公開できそうな感じがしましたが、そんなことはない...??
  • nginxをちゃんと使うようにしよう!

もっとGCPの機能を調べます!!

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?