Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

blackfireio/blackfire-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackfire Workshop

This Symfony application is a demo application created to show how you can profile Symfony applications using Blackfire.io.

Requirements

  • Docker;
  • Docker-compose.

or

If unsure about meeting these requirements, download this application and browse the http://localhost:8000/check.php script to get more detailed information.

Installation (with Docker)

Install dependencies:

docker-compose run --rm app composer install

Export your Blackfire environment variables:

export BLACKFIRE_SERVER_ID=[YOUR-VALUE]
export BLACKFIRE_SERVER_TOKEN=[YOUR-VALUE]

And start containers:

docker-compose up

After this step, jump to section "Usage".

Installation (without Docker)

Install dependencies:

composer install

And start server:

# With embedded server
app/console server:run --env=prod

# Or with Symfony CLI
symfony serve

Usage

You can access the application in your browser at http://localhost:8000. You can stop the server by running docker-compose down if you're using docker, or by pressing Ctrl + C while you're in the terminal if you're not using Docker.

Note: if you are using Symfony CLI, you might need to add /app.php to your URL to get the "prod" environment.