Twitter bootstrap 在Sails.js中使用引导css
我刚开始学习Sails.js,正在尝试制作一个简单的应用程序。我在layout.ejs中有一个链接到引导cdn的Twitter bootstrap 在Sails.js中使用引导css,twitter-bootstrap,sails.js,ejs,embedded-javascript,Twitter Bootstrap,Sails.js,Ejs,Embedded Javascript,我刚开始学习Sails.js,正在尝试制作一个简单的应用程序。我在layout.ejs中有一个链接到引导cdn的标记。对某些文件进行某些更改后,我收到此消息 excuse my interruption, but it looks like this app does not have a project-wide "migrate" setting configured yet. (perhaps this is the first time you're lifting it with
标记。对某些文件进行某些更改后,我收到此消息
excuse my interruption, but it looks like this app
does not have a project-wide "migrate" setting configured yet.
(perhaps this is the first time you're lifting it with models?)
In short, this setting controls whether/how Sails will attempt to automatically
rebuild the tables/collections/sets/etc. in your database schema.
You can read more about the "migrate" setting here:
http://sailsjs.org/#/documentation/concepts/ORM/model-settings.html?q=migrate
In a production environment (NODE_ENV==="production") Sails always uses
migrate:"safe" to protect inadvertent deletion of your data.
However during development, you have a few other options for convenience:
1. safe - never auto-migrate my database(s). I will do it myself (by hand)
2. alter - auto-migrate, but attempt to keep my existing data (experimental)
3. drop - wipe/drop ALL my data and rebuild models every time I lift Sails
What would you like Sails to do?
在选择了其中任何一个之后,当我尝试连接到页面时,似乎一切都正常,但我的引导链接已被删除,样式也消失了。我对sails和任何后端工作都是新手,所以我不确定会发生什么 您提到的消息与问题无关 当模式设置为“生产”时,Sails使用Grunt将JS和CSS文件合并为单个min JS和CSS文件,因此转到
config/local.JS
并将设置更改为“开发”
要保留与CDN链接的css,请在此处阅读如何自定义grunt任务:
谢谢我一直在找的东西。