如何在Linux上设置本地服务器以测试Dokku?

发布于 2025-01-27 04:38:01 字数 1206 浏览 0 评论 0原文

我是 dokku nginx 服务器的新手 hetzner(cloud)或digitalocean(它已经包含比我需要的dokku较旧的版本可能会导致不必要的财务费用。

更确切地说,我正在尝试在我的/etc/hosts文件中设置域地址,例如:

127.0.0.1       localhost

188.x.xx.xxx    domain.com

通过遵循此 dokku设置教程并传递了以下命令之一:

$ dokku domains:set-global localhost
$ dokku domains:set-global domain.com

但是,一旦我执行prosce prosce claster command(为了显示创建<创建<代码> djangotutorial app):

$ dokku config:show djangotutorial

...我将此作为输出:

=====> djangotutorial env vars
NO_VHOST:  1

从那里我正常执行的所有执行教程,直到我执行以下命令(推到远程服务器):

$ git push dokku main   

...我得到以下消息:

ssh:连接到主机domain.com端口22:连接时间止于致命: 无法从远程存储库中读取。

请确保您拥有正确的访问权限和存储库 存在。

有没有办法实现这一目标以及如何通过上述信息?

非常感谢任何建议/帮助。 先感谢您。

I'm new to Dokku and nginx server and I'm trying to set up server locally on Linux Ubuntu 20.04 for testing purpose instead of using one such as Hetzner (Cloud) or DigitalOcean (which already contains Dokku image which is older version of Dokku than the one I need) which could cause unwanted financial expenses.

More precisely is I'm trying to setup domain address in my /etc/hosts file, e.g.:

127.0.0.1       localhost

188.x.xx.xxx    domain.com

By following this Dokku setup tutorial and passed it one of following commands:

$ dokku domains:set-global localhost
$ dokku domains:set-global domain.com

But once I execute following command (in order to show created djangotutorial app):

$ dokku config:show djangotutorial

... I get this as output:

=====> djangotutorial env vars
NO_VHOST:  1

From there everything I execute normally in mentioned tutorial until I execute following command (to push to remote server):

$ git push dokku main   

... I get following message:

ssh: connect to host domain.com port 22: Connection timed out fatal:
Could not read from remote repository.

Please make sure you have the correct access rights and the repository
exists.

Is there a way to achieve this and how by mentioned info?

Any advice/help is greatly appreciated.
Thank you in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文