Vladislav Bogucharov
04/25/2021, 2:02 PMprefect agent local start
every time.nicholas
04/25/2021, 6:38 PMapollo_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
04/25/2021, 10:17 PMVladislav Bogucharov
04/26/2021, 8:36 AMconfig.toml
in the following path - ./prefect_venv/lib/python3.6/site-packages/prefect/config.toml
Joe
04/26/2021, 3:33 PMZanie
04/26/2021, 4:00 PMJoe
04/26/2021, 5:39 PMPREFECT_SERVER__APOLLO_URL: <http://hostname:4200/graphql>
but I still needed to manually enter the same url in the UIZanie
04/26/2021, 6:19 PMPREFECT__SERVER__UI__APOLLO_URL
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 PMZanie
04/26/2021, 8:20 PM❯ 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
04/26/2021, 9:13 PMJoe
04/26/2021, 9:14 PMnicholas
04/26/2021, 9:17 PMlocalStorage.clear()
3. Hit enter and refresh the window<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
04/26/2021, 9:22 PMJoe
04/26/2021, 9:22 PMnicholas
04/26/2021, 9:24 PM