dolphins7.skeleton/rake/tasks/server.rake
0x1eef 2e8cf6e333 Drop 'twenty-' prefix from toplevel directories
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.
2024-04-21 20:11:25 -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