将 Solar php5 根目录从本地主机导出到实时服务器甚至其他计算机时出现问题

发布于 2024-10-08 11:32:44 字数 570 浏览 0 评论 0原文

好的, 这似乎是显而易见的事情,但我一直无法弄清楚。

我刚刚开始使用 Solar PHP5 框架 http://solarphp.com。这是一个很棒的php5框架。但对于任何新框架来说,都有一个学习曲线。

问题: Solar 使用许多预先编写的脚本来为您创建目录和文件。使快速部署站点变得容易。由于它使用这些脚本,因此它会创建到文件和目录的符号链接。 (示例:手册中的第 1 章)这非常有用,直到您需要导出整个根目录以上传到您的服务器或在另一台开发计算机上创建另一个实例。对我来说,问题是,当我这样做时,文件是可编辑的,但刷新页面时不会反映任何更改。就像它没有更新任何代码一样。我完成更改或更新的唯一方法是(本质上)每次运行站点设置,这涉及运行所有设置脚本、设置数据库连接等。这真是太痛苦了。

问题对此有什么建议吗?我可以导出工作根目录,轻松上传到服务器或其他开发机器,而无需一遍又一遍地运行这些脚本。我知道这很容易,但我不知道到底要搜索什么。

导出使用符号链接的目录/文件是否有某种方法?

Ok,
This seems like something that would be obvious, but I haven't been able to figure this out.

I just started using Solar PHP5 Framework http://solarphp.com. It is a great php5 framework. But with any new framework the is a learning curve.

Issue: Solar uses many pre-written scripts to make directories and files for you. Making it easy to rapidly deploy a site. Being that it uses these scripts, it makes symbolic links to files and directories. (Example: Chapter 1 in the manual) This is great until you need to export your entire root directory to upload to your server or make another instance on another development computer. The problem for me is, when I do this, the files are editable, but do not reflect any changes when I refresh a page. Its like it doesn't update any code. The only way I can accomplish changes or updates, is to (essentially) run the site set-up each time, which involves running all the setup scripts, setting up the DB connections, etc. This is a total pain.

Question Is there any advice out there on doing this where I can just export the working root directory, to easily upload to server or other dev machine, without having to run those scripts over and over again. I know its something easy but I do not know exactly what to search for.

Is the a certain method for exporting directories/files that use symbolic links?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱情眠于流年 2024-10-15 11:32:44

您可以尝试使用 rsync 而不是 ftp 来部署站点。 rsync 将尊重符号链接。当然,您需要具有 ssh 访问权限或使用 FUSE 通过 ftp/sftp 安装服务器。如果您使用 SVN,您还可以 ssh 进入服务器并执行 svn 导出或签出。

You might try using rsync instead of ftp to deploy the site. rsync will respect symlinks. Of course you will need have ssh access or mount the server over ftp/sftp with FUSE. If youre using SVN you could also ssh into the server and do an svn export or checkout.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文