Rails: Difference between revisions
From Kingside Wiki
| Line 6: | Line 6: | ||
: '''system''' will print the command output as it happens | : '''system''' will print the command output as it happens | ||
<blockquote>'''Note''' <code>system</code> will make your Ruby program '''''wait until the command is done'''''</blockquote> | <blockquote>'''Note''' <code>system</code> will make your Ruby program '''''wait until the command is done'''''</blockquote> | ||
== Start Rails from Passenger == | |||
[https://stackoverflow.com/questions/16932833/start-rails-server-automatically-after-reboot| Stack Overflow] | |||
Revision as of 17:32, 2 March 2023
Run System Commands From Ruby
systemsystem(“ls”)- system will print the command output as it happens
Note
systemwill make your Ruby program wait until the command is done