Vladislav Bogucharov
04/25/2021, 2:02 PMprefect agent local start
every time.nicholas
apollo_url
is set to localhost:4200/graphql
, it'll communicate with your local Server API, with which you're likely registering your flows. However, when you visit the UI on your phone or another computer, it doesn't have access to the Server API on your other machine (since localhost:4200/graphql
is a different location on those devices) and you won't be able to see those flows. Check that you've correctly set the apollo_url
on your remote machine (this'll be in ~/.prefect/config.toml
) and that whatever machine you're using to register your flows has the endpoint
set in its ~/.prefect/config.toml
to the address of your remote machine as well.
To start an agent in detached mode, you can use any normal utility, like nohup
or screen
. You can read more about those here and here.Vladislav Bogucharov
04/25/2021, 8:49 PMprefect server start
for the changes to take effect?nicholas
Vladislav Bogucharov
04/26/2021, 8:36 AMconfig.toml
in the following path - ./prefect_venv/lib/python3.6/site-packages/prefect/config.toml
Vladislav Bogucharov
04/26/2021, 8:37 AMVladislav Bogucharov
04/26/2021, 10:37 AMVladislav Bogucharov
04/26/2021, 12:04 PMJoe
04/26/2021, 3:33 PMZanie
Joe
04/26/2021, 5:39 PMJoe
04/26/2021, 5:41 PMPREFECT_SERVER__APOLLO_URL: <http://hostname:4200/graphql>
but I still needed to manually enter the same url in the UIZanie
PREFECT__SERVER__UI__APOLLO_URL
Zanie
Zanie
Zanie
Zanie
Zanie
config.toml
or via environment variable when you run prefect server start
and it will be set in the docker-compose file for you, but it looks like you are hardcoding that line in your compose file and starting it yourself?Joe
04/26/2021, 6:53 PMJoe
04/26/2021, 6:54 PMJoe
04/26/2021, 6:56 PMZanie
Zanie
❯ docker exec -it t_ui_1 /bin/bash
root@2e5ec71597c7:/# echo $PREFECT_SERVER__APOLLO_URL
<http://localhost:4200/graphql>
root@2e5ec71597c7:/# cat /var/www/settings.json
{
"server_url": "<http://localhost:4200/graphql>"
}
root@2e5ec71597c7:/#
Joe
04/26/2021, 9:12 PMnicholas
Joe
04/26/2021, 9:14 PMJoe
04/26/2021, 9:14 PMnicholas
localStorage.clear()
3. Hit enter and refresh the windownicholas
<http://hostname:8080/settings.json|http://hostname:8080/settings.json><http://hostname:8080/settings.json|http://hostname:8080/settings.json>
Joe
04/26/2021, 9:19 PMnicholas
Joe
04/26/2021, 9:22 PMJoe
04/26/2021, 9:22 PMJoe
04/26/2021, 9:23 PMJoe
04/26/2021, 9:23 PMnicholas