Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Heroku Scheduler で php ファイルを実行したい。誰でもファイルを実行できるようにするには、どのような方法がありますか? Web ルート (php アプリでは「www」) の上に配置する方法はありますか?
これを実現する最も簡単な方法は.htaccess、プロジェクトのルート ディレクトリにあるファイルを使用して、これらのファイルが Apache 経由でアクセスできないようにすることです。スケジューラは引き続きそれらを実行できます。
.htaccess
<Directory /app/www/DIRECTORY_NAME> Order Deny,Allow Deny from All </Directory>
これらのPHPファイルをDIRECTORY_NAME入れた名前です。
DIRECTORY_NAME