Adding an external server in Aptana Studio 3

那年仲夏 提交于 2019-11-27 06:03:25

问题


How can I add an external server in Aptana Studio 3, since there is no Servers view?

Here are some instructions on how to do it but they both use Windows > Show view > Servers which is no longer available in Aptana 3. With the console is possible? How?

I have a wamp server installed and I can run correctly php files stored inside the htdocs folder. Now I want to run those php files from Aptana but I was getting blank pages.

In Project > Run Configurations I noticed the "Use selected server" option but no possibilty to add a server there, so I used "Use base URL" together with "Append project name" and now I can run php files from Aptana but I am still wondering if it is the best option and how I could tell Aptana to use the wamp server.


回答1:


In Aptana Studio 3 you need to open Preferences, Aptana/ Web Servers node and add your local apache server there. If you set the document root correctly, your apache server will be used for previewing in Studio (See Preview button on toolbar).




回答2:


Just add an alias in my apache config like

Alias /aptana "C:/Aptana/Aptana Studio 3 Workspace"

where I have MyApp project in Aptana,

Then in Run cnfiguration, Web Browser, My Apache Server,

Use base url = http://<domain><port>/aptana/

In my browser URL : http:///aptana/MyApp

That's all




回答3:


I solved it by following method:

1.find the httpd.conf in {path to Apache}/conf/, set the "DocumentRoot" value as your Aptana workspace.

2.Run->Run Configurations.. choose a web browser, set the "Use base URL" value as http://localhost/{here is your project name}/

3.run.



来源:https://stackoverflow.com/questions/5968156/adding-an-external-server-in-aptana-studio-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!