Adding an external server in Aptana Studio 3

2019-01-19 00:23发布

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.

adding a server in Aptana Studio 3

3条回答
戒情不戒烟
2楼-- · 2019-01-19 00:43

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).

查看更多
迷人小祖宗
3楼-- · 2019-01-19 00:59

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

查看更多
Summer. ? 凉城
4楼-- · 2019-01-19 01:03

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.

查看更多
登录 后发表回答