django - django cookiecutter 在 docker 中编译 sass
问题描述
我正在使用 docker 在本地运行cookiecutter-django。如何编译 sass?
我通过做来运行应用程序$ docker-compose --file local.yml up
。当我编辑源代码模板文件时,Web 应用程序会在http://localhost:8000反映这些更改
当我编辑static/sass/project.scss
网站时没有得到新的 CSS 规则。
我试着跑步$ docker-compose --file local.yml run --rm npm install
,但我得到了消息ERROR: No such service: npm
。
可能有帮助的资源:
解决方案
服务名称(来自 docker-compose 文件是node
.
命令应该是$ docker-compose --file local.yml run --rm node npm install
推荐阅读
- dask - 在 dask 分布式中具有正确资源分配的工人示例
- javascript - 如何在 React 中过滤对象数组
- c - C编程中__attributes__的解释:
- javascript - 如果属性在另一个数组中并且值为 true,则过滤对象数组
- sql - 当我可以在复合列上使用具有唯一约束的单个主键时,为什么要使用复合主键?
- sql - 如何让 IIS 使用 AppPool Identity 连接到 SQL Server 而不是 NT Authority\IUSR?
- firebase - 如何使用 Provider、Firebase 在 Flutter 中获取当前用户
- python - 如何从 config.py 修改全局变量,但在包命名空间中保留默认值?
- python - 使用 ngram 模型估计下一个单词的概率
- node.js - 在没有 konva-node 的 nodejs 后端上使用 konva