0x1eef
2e8cf6e333
The directories twenty-{server,client,cli} have been renamed to not include 'twenty-'. The gems are still published with the twenty- prefix, otherwise a collision is impossible to avoid. This commit makes it slightly easier to generalize twenty.
11 lines
305 B
Ruby
11 lines
305 B
Ruby
desc "Run server"
|
|
task :server, [:protocol] do |_, args|
|
|
require 'rbconfig'
|
|
cli = [RbConfig.ruby, "-rbundler/setup", "cli/bin/twenty", "up"]
|
|
h = args.to_h
|
|
if h[:protocol] == "unix"
|
|
Process.wait spawn(*cli, "--unix", "/tmp/twenty.freebsd.local")
|
|
else
|
|
Process.wait spawn(*cli)
|
|
end
|
|
end
|