Service foreman start: "command not found:rails"

I have a new installed puppet server with foreman.The
puppet,puppetmaster,foreman-proxy and apache have started successfully, But
when i start the foreman service it reports error:"command not found:rails".
When i run this command "ruby /usr/share/foreman/script/rails server -b
0.0.0.0 -p 3000 -e production -d", it reports error:"Could not find
rake-10.4.2 in any of the sources".
Now all of the services look like work well, and i can see the puppet
reports on the foreman web page.
puppet 3.8.3
foreman 1.9.2

> I have a new installed puppet server with foreman.The
> puppet,puppetmaster,foreman-proxy and apache have started successfully,
> But when i start the foreman service it reports error:"command not
> found:rails".

You shouldn't need to run this command. If you used foreman-installer,
Foreman is configured to run under Apache. If you need to restart it,
restart apache2/httpd or touch ~foreman/tmp/restart.txt.

> When i run this command "ruby /usr/share/foreman/script/rails server -b
> 0.0.0.0 -p 3000 -e production -d", it reports error:"Could not find
> rake-10.4.2 in any of the sources".

Yeah, depending on your OS that command would need some changes. I
wouldn't recommend running it unless you know why you'd want to run it
in the foreground too… it sounds like it's working fine as it is.

··· On 10/11/15 12:42, 韩雨哲 wrote:


Dominic Cleal
dominic@cleal.org