【发布时间】:2023-03-08 07:08:01
【问题描述】:
在我的电脑上,我可以通过以下方式启动 redmine:
cd /usr/share/redmine
bundle exec rails server webrick -e production -p 3001
这将在 3001 端口启动 redmine。
如果我创建一个 bash 脚本,它总是从端口 3000 开始,就像参数被忽略一样。
我究竟做错了什么 ?
这就是我所拥有的
#!/bin/bash
#exec /usr/lib/x86_64-linux-gnu/opera/opera --no-sandbox $@
cd /usr/share/redmine
# Port from settings file will be ignored either way ...
#bundle exec rails -p 3003 server webrick -e production
bundle exec rails server webrick -e production -p 3001
【问题讨论】:
标签: ruby-on-rails bash shell redmine webrick