0

创建 sharetribe 的开发实例后,在“设置您的市场”后在端口 3000 上访问本地主机时出现以下 http 错误。任何有关此错误的提示将不胜感激。

INFO {“方法”:“GET”,“路径”:“/”,“格式”:“html”,“控制器”:“主页控制器”,“动作”:“索引”,“状态”:500,“持续时间”:496.91,“view”:0.0,“db”:45.37,“params”:{},“host”:“0.0.0.0”,“community_id”:1,“current_user_id”:“”,“user_agent”: “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0”,“referer”:“”,“forwarded_for”:“”,“request_uuid”:“522df877-291c-41b3-b286 -53ca311e9dd8”} FATAL ActionView::Template::Error - 找不到类型为 'application/javascript' 的文件 'vendor-bundle' 在这些路径中检查:/home/administrator/sharetribe/app/assets/font-awesome-icons /home/administrator/sharetribe/app/assets/images /home/administrator/sharetribe/app/assets/javascripts /home/administrator/sharetribe/app/assets /stylesheets /home/administrator/sharetribe/vendor/assets/javascripts /home/administrator/sharetribe/vendor/assets/stylesheets

4

1 回答 1

0

你执行了这个命令吗?

foreman start -f Procfile.static

你也可以只启动它

script/wait_for_server_js.sh && rails s -b 0.0.0.0

script/export_routes_js.sh && cd client && npm run build:dev:client

script/export_translations.sh && script/wait_for_routes_js.sh && cd client && npm run build:dev:server
于 2019-12-20T19:56:01.020 回答