And the next time you try to run it you get that error. Sometimes, Xcode fails to stop the Backend properly. bind(descriptor:ptr:bytes:): Address already in use (errno: 48) Make sure to change the authentication values when deploying your service to production not to use the default values. You will see the build data in that table. Check the docker-compose.yml file for the database name and the default user and password. The Postgres instance is running in localhost, port 5432. You can use any Postgres client like Postico. Double check that in the Post-build action you pass localhost to the -serviceURL parameter: -serviceURL Once you send data to the backend by building the Xcode project where you configured XCMetrics, verify that it was inserted by inspecting the database. Insert Xcode build log data using the XCMetrics ClientĬonfigure a Xcode project to use XCMetrics as described in our Getting Started guide. Or from Xcode: remove the migrate argument and run the XCMetricsBackend schema 2.3 Verify that is runningĬurl -I 3. 2.2 Start the backendįrom the command line: swift run XCMetricsBackend Note: You will get a prompt to confirm the migrations. Or from Xcode, select the XCMetricsBackend schema and setup migrate as an Argument: That information can be found in the Changelog.įrom the command line swift run XCMetricsBackend migrate You only need to run them the first time you’re going to start the backend or if a table changed since the last time you ran it. The migrations will create the tables that the project uses in the Database. Note: Remember to stop the docker instances when you’re done using the Backend locally with docker-compose stop 2.1 Database migrations This repo contains a docker-compose.yml file that you can use to start them. The Backend needs Redis and Postgresql to run. To check that it works you can simply run curl -I 2. The XCMetrics backend should be available in the port 8080. The command will start the Postgres database, Redis and the XCMetrics backend. From the command line, run this command:ĭocker-compose -f docker-compose-local.yml up.If you haven’t, install Docker for Mac.The file is called docker-compose-local.yml. Because it requires a Redis and a Postgres instance, we provide a Docker compose file that configures them for you. The easiest way to run it is to use our prebuilt Docker Image. Another good resource for learning it, is this tutorial 1. We advise to read the official documentation if you plan to contribute to it. The Backend is built using the Vapor 4.0 framework. This guide will walk you through the necessary steps. It’s useful to run the backend locally to test that you can ingest data to it before deploying your changes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |