0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

学習52日目

Last updated at Posted at 2025-07-25

内容

gasを用いてrenderに定期的にアクセスする

前提

自作アプリをrenderでデプロイしている

手順

① pcでgoogle driveを開き「新規 > その他 > Google Apps Script」の順にクリック

② 下記コードを記述し、ドライブに保存、実行。
※ hogehogeの部分は自身のアプリケーションによって異なる。
※ 各種警告が出ても無視してOK。

function main()
{
  var url = 'https://{hogehogefugafuga}.onrender.com';
  var data = UrlFetchApp.fetch(url).getContentText();
}

③ トリガーを設定
左メニューからトリガー設定の画面を開き、スケジュールを設定する。
(renderは15分でスリープするので、10分おき程度に設定)

コメント

googleのサービスをよく使うので、gasを活用すると日々の操作を効率化できそうだと感じた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?