如何从 GitHub 存储库获取代码到另一个域?
How to get code from a GitHub repo onto another domain?
我正在开发一个网站,在开始付费托管它之前,我一直在使用一种名为 AWARDSPACE.com 的廉价托管软件,随机免费 URL。该软件有一个复杂的界面,每当您想更改站点时,您都必须经历整个过程。我想知道是否有某种类型的小部件可以在几行内从 GitHub(我存储所有代码,以便妥善保管)到该站点,而不是不断更新站点我的仪表板。在你提出建议之前,GitHub 页面对我不起作用 unknown problems. 如果有人有任何建议,我能想到的另一个解决方案是不同的托管服务
感谢您的帮助!
我认为最适合您的解决方案是 Heroku,它有一个免费计划,可以与您的存储库链接,以便在每次推送后自动重新部署您的站点。
但请注意,为了提供一个简单的 HTML 站点,您需要一个包含以下内容的 index.php
文件 <?php header( 'Location: /index.html' ) ; ?>
我刚刚直接从我的 GitHub 存储库部署了这个 HTML 站点:Heroku HTML site
这是来自他们的 DevCenter
Accounts are given a base of 550 free dyno hours each month. In addition to these base hours, accounts which verify with a credit card will receive an additional 450 hours added to the monthly free dyno quota. This means you can receive a total of 1000 free dyno hours per month, if you verify your account with a credit card.
When you use all your free dyno hours for a given month, all free apps on your account will be forced to sleep for the rest of the month.
Every Heroku account is allocated a pool of free dyno hours. An app actively consumes free dyno hours if the app is set to use free dynos and any of the following are true:
It has a web dyno that is receiving traffic (i.e., not sleeping)
It has a worker dyno running
It has a one-off dyno running. For example, one started via the CLI or Scheduler.
If an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period, it will sleep.
Free web dynos do not consume free dyno hours while sleeping.
If a sleeping web dyno receives web traffic, it will become active again after a short delay (assuming your account has free dyno hours available).
因此,总而言之:除非您的网站有持续的网络流量超过 550(或 1000)小时,否则您不会遇到真正的问题。
您可以通过 here
阅读更多关于测功机的信息
我正在开发一个网站,在开始付费托管它之前,我一直在使用一种名为 AWARDSPACE.com 的廉价托管软件,随机免费 URL。该软件有一个复杂的界面,每当您想更改站点时,您都必须经历整个过程。我想知道是否有某种类型的小部件可以在几行内从 GitHub(我存储所有代码,以便妥善保管)到该站点,而不是不断更新站点我的仪表板。在你提出建议之前,GitHub 页面对我不起作用 unknown problems. 如果有人有任何建议,我能想到的另一个解决方案是不同的托管服务
感谢您的帮助!
我认为最适合您的解决方案是 Heroku,它有一个免费计划,可以与您的存储库链接,以便在每次推送后自动重新部署您的站点。
但请注意,为了提供一个简单的 HTML 站点,您需要一个包含以下内容的 index.php
文件 <?php header( 'Location: /index.html' ) ; ?>
我刚刚直接从我的 GitHub 存储库部署了这个 HTML 站点:Heroku HTML site
这是来自他们的 DevCenter
Accounts are given a base of 550 free dyno hours each month. In addition to these base hours, accounts which verify with a credit card will receive an additional 450 hours added to the monthly free dyno quota. This means you can receive a total of 1000 free dyno hours per month, if you verify your account with a credit card.
When you use all your free dyno hours for a given month, all free apps on your account will be forced to sleep for the rest of the month.
Every Heroku account is allocated a pool of free dyno hours. An app actively consumes free dyno hours if the app is set to use free dynos and any of the following are true:
It has a web dyno that is receiving traffic (i.e., not sleeping)
It has a worker dyno running
It has a one-off dyno running. For example, one started via the CLI or Scheduler. If an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period, it will sleep.
Free web dynos do not consume free dyno hours while sleeping.
If a sleeping web dyno receives web traffic, it will become active again after a short delay (assuming your account has free dyno hours available).
因此,总而言之:除非您的网站有持续的网络流量超过 550(或 1000)小时,否则您不会遇到真正的问题。
您可以通过 here
阅读更多关于测功机的信息