scripts/appconsole.rb in standup-0.3.0 vs scripts/appconsole.rb in standup-0.3.1
- old
+ new
@@ -1,7 +1,7 @@
Standup.script do
self.description = 'Run remote Rails application console'
def run
- Kernel.exec "#{node.ssh_string} -t 'cd /opt/webapp && rails console production'".tap(&:bright_p)
+ Kernel.exec "#{node.ssh_string} -t 'cd /opt/webapp && rails console #{scripts.webapp.params.rails_env}'".tap(&:bright_p)
end
end