kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 193 forks source link

Meteor app works fine locally but throws a route not found error when built #674

Open tyler-dunkel opened 8 years ago

tyler-dunkel commented 8 years ago

I have a meteor v.1.3.2 application that is using flow router v.1.12.1. The app works perfectly fine when started locally. But, when I run meteor build . and put the tar file on a DO server, it doesnt appear to work anymore. I am going into the bundle/programs/server and running npm install. I then went to the bundle dir and started the application with node main.js (after setting my mongo and root urls). The node instance starts fine, but when i visit the page it says "the path '/' is not defined. Do you have any idea why this would happen? My '/' route looks like this: FlowRouter.route('/', { action() { mount(MainLayout) } });

serut commented 8 years ago

Looks related to https://github.com/kadirahq/flow-router/issues/608