首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku在rails上不能完美地工作6

Heroku在rails上不能完美地工作6
EN

Stack Overflow用户
提问于 2021-04-26 16:58:00
回答 1查看 21关注 0票数 0

我正在使用Rails6成功地将代码部署到heroku,但是public/packs deploy.it没有负责post表单页面中的add tag选项。

Application.js

代码语言:javascript
复制
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.

import "bootstrap"



require("@rails/ujs").start()
require("turbolinks").start()
require("@rails/activestorage").start()
require("channels")


require('./nested-forms/addFields')

// Uncomment to copy all static images under ../images to the output folder and reference
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
// or the `imagePath` JavaScript helper below.
//
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)
EN

回答 1

Stack Overflow用户

发布于 2021-04-28 14:37:33

我修复了它,删除了.gitignore中的public\packs文件

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67263637

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档