Current time: 09-20-2020, 02:43 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simplest setup for local server development?
05-09-2020, 03:13 AM
Post: #1
Simplest setup for local server development?
I'd like to poke at the server UI, ideally without setting up my own agent. Is there documentation on the best setup for local development? I'm on a Mac, if it matters.

I tried using docker, and the public relay server:

docker/local/run_local_container.sh
docker cp www/settings/locations.ini wpt:/var/www/html/settings


My locations.ini:

PHP Code:
[locations]
1=Public_Dulles
default=Public_Dulles

;
These are the top-level locations that are listed in the location dropdown
Each one points to one or more browser configurations
;

[
Public_Dulles]
1=WPT_Dulles
label
="WebPageTest.org - Dulles, VA"
group=Public

;
This is an example of a "remote" configuration where tests can be proxied to a remote
WebPageTest instance.  The test will be run by the remote serverbut the results
will be downloaded to the local server and deleted from the remote agent
;
Each desired location from the remote server needs to be configured
individually on the local configuration (location names do not need to match)
;
To use the public webpagetest.org instance you will need an API keyhttps://www.webpagetest.org/getkey.php
;

[
WPT_Dulles]
browser=Chrome,Firefox
label
="WebPageTest.org Dulles, VA - IE8"
relayServer="https://www.webpagetest.org/"
relayKey="<I got a key and remembered to paste it here>"
relayLocation=Dulles 

This almost works--it seems like I'm able to start a run, and the UI goes through the phases of waiting for it to complete, but then when it appears to finish it gives a "Test not found" message (see screenshot)
[Image: Screen-Shot-2020-05-08-at-1-05-53-PM.png]

Is there a simple fix? Or maybe just an easier way to do local development?
Find all posts by this user
Quote this message in a reply
05-10-2020, 01:24 AM
Post: #2
RE: Simplest setup for local server development?
Hmm, I've never used the docker container but my guess would be something around the local results folder and where that persists.

It might be easiest to spin up a free-tier AWS instance using the server image or a VM (or gce instance) with Ubuntu 18.04 and just run the server install script: https://github.com/WPO-Foundation/wptserver-install

I usually install xdebug in the php on the dev server and then use vscode remote to do dev work on it so I don't have to deal with being on a Mac.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)