Yes, you'll be needed to launch that code in some port on your remote server and setup URLs in feature configs to use that.
Support Forum
Hello.
Export server is a simple web application which receives HTTP requests and sends out HTTP responses. It runs with a command line that does not require any NodeJS experience.
Running it on the server depends on what your server is. If you have access to the file system and remote shell, running node process on the server is the same as on the local machine.
Tricky part here is how to make export server on the remote machine to load styles correctly. This section is covered in the resources
section in server README.md. Long story short - you need to make sure export server running on remote machine can access stylesheets that exported page is using.
Maxim Gorkovsky wrote: ↑Thu May 12, 2022 5:49 pmHello.
Export server is a simple web application which receives HTTP requests and sends out HTTP responses. It runs with a command line that does not require any NodeJS experience.
Running it on the server depends on what your server is. If you have access to the file system and remote shell, running node process on the server is the same as on the local machine.Tricky part here is how to make export server on the remote machine to load styles correctly. This section is covered in the
resources
section in server README.md. Long story short - you need to make sure export server running on remote machine can access stylesheets that exported page is using.
If I publish the Node service to our cloud server, do I have to apply for a separate domain name for the service, or how do I run the service
Don't this that you're looking for?
https://bryntum.com/docs/gantt/api/Gantt/feature/export/PdfExport#config-fetchOptions
All the best,
Alex
What should I do if I want to listen for an end of request event?
pdfExport : {
exportServer : 'https://qakimigatewaybe.schaefflercn.com/pp/gateway/api/app/project-task/export-gantt-pdf',
// Development config
translateURLsToAbsolute :true,
openAfterExport:true,
openInNewTab:false,
listeners: {
beforeRequest:(data)=>{
console.log(data)
}
},
// For production replace with this one. See README.md for explanation
// translateURLsToAbsolute : 'https://localhost:8080/resources/', // Trailing slash is important
keepPathName : false
},
Please see docs here https://bryntum.com/products/gantt/docs/api/Gantt/feature/export/PdfExport#event-pdfExport
All the best,
Alex