MilesChou / docker-phalcon

Dockerized Phalcon
https://hub.docker.com/repository/docker/mileschou/phalcon
MIT License
124 stars 41 forks source link

Uncaught Phalcon\Mvc\Micro\Exception: Not-Found #59

Open rann02 opened 1 year ago

rann02 commented 1 year ago

Description: I am encountering an issue with running a Docker image that I obtained from your repository. The image fails to execute and throws an "Uncaught Phalcon\Mvc\Micro\Exception: Not-Found" error. However, I have confirmed that I have the correct image from your repository.

Steps to Reproduce:

Pull the Docker image from the repository.
Start the container using the pulled image.
Attempt to run the necessary commands or access the application within the container.
Observe the "Uncaught Phalcon\Mvc\Micro\Exception: Not-Found" error.

My Minimal index.php code:

`<?php

use Phalcon\Mvc\Micro;

$app = new Micro();

$app->get( '/api/robots', function () { echo 'hello'; } );

$app->handle( $_SERVER["REQUEST_URI"] );`

Expected Behavior: The Docker image should successfully run without any errors and allow access to the application within the container.

Additional Information:

I have ensured that I am using the correct image from your repository.
I have reviewed the documentation and followed the required steps for running the container.
I have tried pulling the image again to rule out any potential issues with the image itself.
I have verified that all the necessary dependencies are installed and configured correctly.
I have examined the logs, but they do not provide any further insights into the issue.

Environment:

Docker version: 23.0.6, build ef23cbc
Operating System: Fedora 38 (MATE-Compiz)

Please let me know if any additional information or logs are required to troubleshoot this issue.

fizzka commented 8 months ago

What image (version) did you use?

Could you provide your run script?