balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.83k stars 1.95k forks source link

Sails-hook-autoreload not work for create model #4700

Open vaghela943 opened 5 years ago

vaghela943 commented 5 years ago

Sails version: 1.1 Node version: 10.3.0 NPM version: 6.1.0 DB adapter name:N/A DB adapter version: N/A Operating system: Ubuntu


Hello sir,

I have added package "Sails-hook-autoreload" in sails V1.1. This package work fine for controller and view but It not work when I create model dynamically and fetch using EVAL function.

This same things work on Sails V0.12.

Please provide help.....

sailsbot commented 5 years ago

Hi @vaghela943! It looks like you missed a step or two when you created your issue. Please edit your comment (use the pencil icon at the top-right corner of the comment box) and fix the following:

As soon as those items are rectified, post a new comment (e.g. “Ok, fixed!”) below and we'll take a look. Thanks!

*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@sailsjs.com

raqem commented 5 years ago

Hi @vaghela943, Sails-hook-autoreload is no-longer maintained by the core Sails team, so its unfortunately possible an update to Sails was incompatible to this hook.

I also peeked at the readme for autoreload and it looks like there is a long list of plugins that make this hook 'unlikely to work properly'. Maybe one of those is giving you a hard time?

If you find a cause for new models not triggering the re-load it looks like the hook maintainer, @sgress454, is open to help with continuing development on this hook.

~Cheers!