2

當我設置播放框架時,我在代理之後。 我編輯了〜/ .activator/activatorconfig.txt文件,它工作正常。更改播放框架中的代理設置

現在我需要刪除該代理以在不同的網絡上工作。我註釋掉了這一行,但是當我運行./activator new(或./activator ui)時,激活腳本仍然嘗試使用代理進行連接。 該文件目前看起來像這樣

# This are the proxy settings we use for activator 
# Multiple proxy hosts can be used by separating them with a '|' sign 
# Do not enclose the proxy host(s) in quotes 
#-Dhttp.proxyHost=10.10.78.22 
#-Dhttp.proxyPort=3128 
# Here we configure the hosts which should not go through the proxy.# You should include your private network, if applicable. 
-Dhttp.nonProxyHosts="localhost|127.0.0.1" 
# These are commented out, but if you need to use authentication for your proxy, please fill these out. 
#-Dhttp.proxyUser=(my_username) 
#-Dhttp.proxyPassword=(my_password) 

而且當我從先前創建的項目的根目錄下運行./activator,瀏覽器打開,但該請求永遠不會完成。那是因爲代理還是其他原因?

我是這個框架的新手,任何幫助或提示將是偉大的?

在此先感謝

PS:從終端的互聯網連接工作正常。

回答

2

嘗試許多種可能的組合我其實可以找到一個非標準溶液:

activator -Dhttp.proxyHost="your proxyname" -Dhttp.proxyPort="your port" -Dhttps.proxyHost="your proxyname" -Dhttps.proxyPort="your port" -Dhttp.nonProxyHosts="localhost|127.0.0.1" ~run 

請注意,在「你的proxyName」你不必包含http://也不https://開頭

https://www.typesafe.com/activator/docs中的類型安全文檔的「重新啓動Activator在代理之後」描述對我不起作用(可能在我的ubuntu系統中有一些缺失的配置)。

使用活化劑 - 1.3.5-最小,Java版本 「1.8.0_51」 的,Ubuntu 14.04 LTS

RENEX

0

在activator.bat上述下面@echo關閉所有代碼:

set HTTP_PROXY=http://host:port 
set HTTPS_PROXY=https://host:port 
set HTTP_PROXY_USER=user 
set HTTP_PROXY_PASSWORD=password 

幾天後,我設法使它工作...辛苦(版本2.5.X)