You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also run the application using [nanobox.io][8]. Installation instructions for nanobox can be found [here][9].
23
-
24
-
## Running the application
22
+
## Running the application locally
25
23
26
24
* Clone the repository to a folder on your machine
27
25
* Navigate to that folder
28
-
* Run `nanobox run`
29
-
* After the application compiles you will see `/app $` in your terminal. Type `php-server` to run apache
30
-
* Navigate to the IP address displayed in the console.
26
+
* Run `docker compose up -d`
27
+
* After the build process is completed, you will have the following:
28
+
* PHP 8.0 (`tutorial-8.0`)
29
+
* PHP 8.1 (`tutorial-8.1`)
30
+
* PHP 8.2 (`tutorial-8.2`)
31
+
* PHP 8.3 (`tutorial-8.3`)
32
+
* You can check the application on your local browser by finding the IP address of the chosen environment and launching it. For example, if you wish to check the PHP 8.3 environment, type the following in your terminal:
33
+
34
+
```shell
35
+
docker inspect tutorial-8.3
36
+
```
37
+
This will output a JSON file, where you can find the IP address of the container on your local machine.
0 commit comments