sails.js - Getting blank page
Asked Answered
C

1

5

It is properly working in my localhost. Issue only in another server.

When I run this application from another server, getting a blank page like below,

enter image description here

But api's are working properly. Landing page and no other pages are getting.

This issue has been started from today. In previous days there is no problem in this server.

All pages shows only '304 Not Modified' status. Undefined pages are also showing '304 Not Modified' instead of '404 not found'.

Please help me to fix this issue.

Cecelia answered 6/11, 2015 at 10:22 Comment(1)
Do you have errors turned on in the configuration?Egret
C
9

Issue fixed.

views/layout.ejs get automatically empty that's why this issue occurred.

Reset the file to fix the issue.

Cecelia answered 6/11, 2015 at 10:48 Comment(4)
Did it happen again on "sails lift"?Smidgen
How did yout reset the file?Unfeigned
Use this link to reset the file. raw.githubusercontent.com/rollbar/rollbar-sailsjs-example/…Beechnut
If you're using Git, you can do git checkout views/layouts/layout.ejsComb

© 2022 - 2024 — McMap. All rights reserved.