gpt4 book ai didi

javascript - Heroku 类托管简单的 HTML/JS 应用程序

转载 作者:技术小花猫 更新时间:2023-10-29 12:11:24 24 4
gpt4 key购买 nike

我喜欢使用 Heroku。我喜欢在服务器中执行 git push 并启动并运行 Ruby on Rails 应用程序的简单性。

我正在做一个简单的 HTML/JS 应用程序,我想知道是否有任何免费 托管允许通过执行 git push 来简单地推送应用程序。

最佳答案

这些应该可以回答您的问题:

  1. Static Sites on Heroku Cedar

    First, lets turn your site into a PHP "application":

    $ touch index.php

    Next, we can fully disable Apache's PHP engine:

    $ echo 'php_flag engine off' > .htaccess

    When you push this up, you'll have a bare Apache instance serving up the contents of your site to the world. Best yet, you can do all of the stupid .htaccess tricks that you could on on any traditional shared hosting platform.

  2. heroku-static-site

    A simple ruby + rack application for serving a basic static website

您可能还想查看 github pages它提供免费的静态托管,只需 git push 即可更新。 github pages 相对于 Heroku 的优势在于不会有任何 Dyno Idling .

关于javascript - Heroku 类托管简单的 HTML/JS 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12085026/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com