Router not working (Heroku + Nginx + PHP Phalcon)

I don't get it why the mvc routes are not working.

When I access the home page, all the css and js are loaded.

"GET /css/main.css HTTP/1.1" 304

But when I access any other controller, I got:

method=GET path="/transaction/add" [error] open() "/app/public/transaction/add" failed (2: No such file or directory) "GET /transaction/add HTTP/1.1" 404

Here's my procfile

--Procfile-- web: vendor/bin/heroku-php-nginx public/

location / {

try to serve file directly, fallback to rewrite

try_files $uri @rewriteapp;


location @rewriteapp {

rewrite all to app.php

rewrite ^(.*)$ /index.php/$1 last;


location ~ ^/(app|app_dev|config).php(/|$) { try_files @heroku-fcgi @heroku-fcgi; internal; }

I also have a question here, but none answer yet.

I'm really lost here.


Hey man

IN config file(app/config/config.php) , what is Url public ?



I don't have the URL public folder configured, but I do have the "'baseUri' => '/'".

Anyway, only the fact that I set my Procfile to public/, it shouldn't auto load my index.php even if I put an exit('hello') there?