我的流星项目与一个脚本捆绑在一起,并永远运行。到目前为止,这个过程一直很好,但对于我的上一个项目来说,它不起作用。
我设置了一个干净的服务器,没有运行httpd进程,以确保没有干扰。
没有错误,但当我转到http://dev.sertal.ch:4020
上的应用程序时,我会被重定向到https://dev.sertal.ch
这是捆绑包脚本:
#!/bin/bash
cd /root/projects/tablet-reporting/app
git pull
rm -Rf /opt/sertal/tablet-reporting-test
rm -f /opt/sertal/tablet-reporting-test.tgz
meteor bundle /opt/sertal/tablet-reporting-test.tgz
cd /opt/sertal
tar -xvzf tablet-reporting-test.tgz
mv bundle tablet-reporting-test
cd /opt/sertal/tablet-reporting-test/programs/server/node_modules
rm -Rf fibers
npm install fibers
应用程序就是这样启动的:
MONGO_URL="mongodb://localhost:27017/tablet-reporting-test" PORT=4020 ROOT_URL="http://dev.sertal.ch:4020" node tablet-reporting-test/main.js
上面写着
LISTENING
您可能已经安装了force-ssl
软件包。
meteor remove force-ssl
然后重新部署。请告知,如果它不起作用,它可能是一些代理的事情。