dolphins7.skeleton/host/rake/tasks/server.rake
0x1eef daff4d83f4 Move "host" files to host/
The "host" refers to what houses the cli, server, and client.
2024-04-21 22:13:01 -03:00

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