1.在blog项目下新建webpacker.yml文件
2.将以下内容复制进去
#Note: You must restart bin/webpack-dev-server for changes to take effect

default: &default
source_path: app/packs
source_entry_path: entrypoints
public_root_path: public
public_output_path: packs
cache_path: tmp/cache/webpacker
webpack_compile_output: true

#Additional paths webpack should look up modules
#[‘app/assets’, ‘engine/foo/app/assets’]
additional_paths: []

#Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false

development:
<<: *default
compile: true

#Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: localhost
port: 3035
public: localhost:3035
# Inject browserside javascript that required by both HMR and Live(full) reload
inject_client: true
#Hot Module Replacement updates modules while the application is running without a full reload
hmr: false
#Inline should be set to true if using HMR; it inserts a script to take care of live reloading
inline: true
#Should we show a full-screen overlay in the browser when there are compiler errors or warnings?
overlay: true
# Should we use gzip compression?
compress: true
# Note that apps that do not check the host are vulnerable to DNS rebinding attacks
disable_host_check: true
# This option lets the browser open with your local IP
use_local_ip: false
# When enabled, nothing except the initial startup information will be written to the console.
# This also means that errors or warnings from webpack are not visible.
quiet: false
pretty: false
headers:
‘Access-Control-Allow-Origin’: ‘*’
watch_options:
ignored: ‘/node_modules/

test:
<<: *default
compile: true

#Compile test packs to a separate directory
public_output_path: packs-test

production:
<<: *default

#Production depends on precompilation of packs prior to booting for performance.
compile: false

#Cache manifest.json for performance
cache_manifest: true
3.重新使用命令rails server启动

记录学习中遇到的bug并解决

关于ruby on rails启动服务器 Webpacker configuration file not found问题相关推荐

  1. WAMP启动报The configuration file contains a syntax error

    正常启动WAMP,突然弹窗报错.具体报错信息如下: The configuration file contians a syntax error on line 14: [EParseError] X ...

  2. dapper 安装_在Ubuntu Dapper或Edgy上安装Ruby on Rails

    dapper 安装 Ruby on Rails is a popular new framework for developing web applications. Since Ruby on Ra ...

  3. Ruby on Rails路径穿越与任意文件读取漏洞分析(CVE-2019-5418)

    Ruby on Rails是一个 Web 应用程序框架,是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上.它被宣传为现有企业框架的一个替代,而它的目标,就是让 Web 开发方面的生活 ...

  4. react前端项目_如何使用React前端设置Ruby on Rails项目

    react前端项目 The author selected the Electronic Frontier Foundation to receive a donation as part of th ...

  5. 如何使用Docker轻松设置Ruby on Rails开发环境

    You've likely heard about Docker terms like containers, images, services, volumes, network, Dockerfi ...

  6. 安装 Ruby On Rails on Windows

    Ruby on Rails环境的搭建(基于Win XP) 一个RoR环境的搭建还算比较简单,但其中有几个小地方需要注意,也许会省你不少心思. 1. 先安装Ruby,现在的版本是1.8.6,可以从 这儿 ...

  7. Status Ruby on Rails in China - Presentation Transcript

    Slide 1: 铁道中文应用开发现状综述 2008年8月 制作发布:铁道播客 BD7LX 深圳 http://rorcast.blogger2blogger.com/ 铁道中文应用开发现状综述 20 ...

  8. ruby on rails_DB2和Ruby on Rails入门

    ruby on rails Ruby on Rails于2004年发布,已Swift成为Web应用程序开发中最流行的框架之一. 这个开源项目也称为Rails或RoR,它使用模型-视图-控制器(MVC) ...

  9. ruby on rails_最终的中级Ruby on Rails教程:让我们创建一个完整的应用程序!

    ruby on rails 由Domantas G (By Domantas G) There are plenty tutorials online which show how to create ...

  10. “Ruby on Rails 之 Oracle 应用”常见问题解答

    目录 为什么使用 RUBY ON RAILS? 定义 Ruby 是什么? Rails 是什么? 模型-视图-控制器模式 (MVC) 是什么? RubyGems 是什么? OCI8 是什么? ORACL ...

最新文章

  1. TensorFlow分布式详解
  2. 教你辨别36k纯数据科学家
  3. Java重写equals和hashCode方法
  4. decltype 遇到计算结果为左值的表达式会得到引用类型
  5. 唯美动态个人404错误页面html源码
  6. 在xcode4.2.1项目中加入oreplot0.9
  7. 【OpenCV】OpenCV函数精讲之 -- 初级图像混合
  8. Centos 6.5 linux 安装nginx
  9. ES6:Set数据结构
  10. 安装TinyOS需要六个步骤
  11. oracle sql调优面试,数据库优化常见的面试题
  12. Android——ViewHolder
  13. Sqlmap中文手册
  14. 使用Bitbucket Cloud学习Git
  15. fluent6.3如何制作动画
  16. B站崩了,一群跟着躺枪!「小破站」到底发生了什么?
  17. 自负是自卑的一种心理表征
  18. 计算机管理员年终总结突出点,联社计算机管理员个人工作总结
  19. 渣土车管理实施方案,运输监控管理系统介绍
  20. 推荐系统视频行业揭秘,“抖音快手”现象级产品背后的推荐逻辑

热门文章

  1. 2023计算机毕业设计SSM最新选题之java住院病人管理系统pebfh
  2. 2023计算机毕业设计SSM最新选题之javaJava班级信息管理系统x0w9c
  3. 将阿拉伯数字 翻译为 罗马数字
  4. ios降级鸿蒙,ios14更新正式版能降级到ios13.7吗 苹果ios14怎么降级方法教程
  5. 知乎高赞:电气工程专业学生的最好归宿在哪里?
  6. 剑指Offer 09.用两个栈实现队列(LIFO与FIFO)
  7. [BZOJ3772]精神污染(dfs序+主席树)
  8. CVPR21-无监督异常检测《CutPaste:Self-Supervised Learning for Anomaly Detection and Localization》
  9. 雨点效果——HTML5之特效
  10. mysql数据库有什么应用场景_科普:云数据库MySQL的几种应用场景