简体   繁体   English

如何在Aptana Studio 3中设置远程托管项目(在Linux服务器上)?

[英]How can a remotely hosted project (on a linux server) be set up in Aptana Studio 3?

Warning! 警告! I am a complete PHP newb...I have been in the MS ecosphere for my whole career. 我是一个完整的PHP新手...我整个职业生涯都在MS生态圈中。 Don't assume I know anything. 不要以为我什么都不知道。 Thanks! 谢谢!

Here's the topography: 这是地形:

  1. Developing on windows 7 machine. 在Windows 7机器上进行开发。 Aptana Studio installed. 已安装Aptana Studio。
  2. Linux server with PHP and frameworks installed. 安装了PHP和框架的Linux服务器。

Here's what I want to be able to do: 这是我想要做的:

  1. Create a PHP project in Aptana Studio 在Aptana Studio中创建一个PHP项目
  2. Develop from within Aptana studio 从Aptana工作室开发
  3. Test the application 测试应用
  4. Upload to the files to the server (or alternatively, they are hosted on the server and Aptana is just editing them. 将文件上传到服务器(或者将文件托管在服务器上,而Aptana只是在编辑文件)。

How do I set this up? 我该如何设置? I don't want to install WAMP or anything on my dev machine. 我不想在我的开发机器上安装WAMP或任何东西。 I just want to use the PHP libraries on the remote server to be used. 我只想在要使用的远程服务器上使用PHP库。

I'm assumming that if I create a PHP project in Aptana studio, it won't work unless I have WAMP installed or use a remote PHP-enabled linux server to test and run the app. 我假设如果我在Aptana studio中创建一个PHP项目,除非安装了WAMP或使用支持PHP的远程Linux服务器来测试和运行该应用程序,否则它将无法正常工作。

And lastely...if I want to use cakePHP, I assume with this setup I am asking for I can just install it on the remote server and then use the libraries? 最后...如果我想使用cakePHP,我假设我要使用此安装程序就可以将其安装在远程服务器上,然后使用库?

Thanks! 谢谢!

My personal setup is very similar to yours. 我的个人设置与您的非常相似。 I create a project, then add a connection. 我创建一个项目,然后添加一个连接。 This connection uses SFTP to connect to the Linux server and it points to the folder with the PHP files. 此连接使用SFTP连接到Linux服务器,并且指向带有PHP文件的文件夹。 You can then open, edit and save all these files from within Aptana (as long as you are connected of course). 然后,您可以从Aptana内部打开,编辑和保存所有这些文件(当然,只要已连接)。

The only downside of this is that since Aptana does not perceive this SFTP connection as local, you can't use the more extensive code searches and the likes. 唯一的缺点是,由于Aptana不会将此SFTP连接视为本地连接,因此无法使用更广泛的代码搜索等。 If this is a no-go for you, you might take a look at mounting the SFTP folder as a drive on Windows. 如果您不愿意这样做,则可以看看如何将SFTP文件夹挂载为Windows上的驱动器。 You can then trick Aptana into thinking it's a local folder, and then all the bells and whistles will work, be it a little slow :) 然后,您可以欺骗Aptana认为它是本地文件夹,然后所有的花哨功能都可以使用,尽管有点慢:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM