class Falcon::Service::Virtual

def spawn(path, container, **options)

@parameter options [Options] The options which are passed to `exec`.
@parameter container [Async::Container::Generic] The container to spawn into.
@parameter path [String] The path to the application directory.
Spawn an application instance from the specified path.
def spawn(path, container, **options)
	container.spawn(name: "Falcon Application", restart: true, key: path) do |instance|
		env = assume_privileges(path)
		
		instance.exec(env,
			"bundle", "exec", "--keep-file-descriptors",
			path, ready: false, **options)
	end
end