我正在尝试在AWS cloud9中运行使用create-react-app构建的应用。我有一个客户端和一个rails服务器,我使用foreman来运行这两个,如下所示:
/client/package.json:
{
"name": "fidirect",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:8081/",
"devDependencies": {
"enzyme": "2.4.1",
"react-addons-test-utils": "15.4.0",
"react-scripts": "0.8.5"
},
procfile:
web: cd client && npm start
api: bundle exec rails s -p 8081
lib / tasks / start.rake:
task :start do
exec 'foreman start -p 8080'
end
当我运行rake start并导航到页面时,我看到的只是"无效的主机标题"这是什么意思?我能做些什么呢?