[ 
https://issues.apache.org/jira/browse/TC-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16117099#comment-16117099
 ] 

Jeremy Mitchell commented on TC-501:
------------------------------------

i’m not sure the best solution off the top of my head.

the default values found in 
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_portal/conf/config.js
 work well when you are in “dev” mode, aka when you have run `grunt` or `grunt 
dev` your output files are put in files in ./app/dist/public/ as the config.js 
file says and it starts an express server that will write an access.log to 
whereever you tell it to. by default i tell it to write it to 
`./server/log/access.log` but yes, when TP is installed, you need to change 
both of those values per the comments in that config.js file.

> TPv2 installation - better defaults are required
> ------------------------------------------------
>
>                 Key: TC-501
>                 URL: https://issues.apache.org/jira/browse/TC-501
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Portal
>    Affects Versions: 2.1.0
>            Reporter: Nir Sopher
>
> After basic install of traffic-portal based on the documentation, traffic 
> portal failed to launch. this is due to relative pathes to the logs and 
> static files appear in the default configuration.
> Note that the working directory of the server is "/"
> First, the log path (./server/log) does not exists. A possible fix is to 
> change the dir to /opt/traffic_portal/server/log and create the log dir if 
> needed. 
> Second. the files static path should be set to "opt/traffic_portal/public"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to