Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
- Removed @napi-rs/canvas and pdf-to-img dependencies from package.json and bun.lock to streamline the project. - Added PDF.js data directory configuration in the Linux service file and build scripts. - Introduced a new pdfToImg module for rendering PDF pages to images, enhancing PDF conversion capabilities. - Updated pdfUtils to utilize the new pdfToImg function, improving efficiency and modularity.
17 lines
304 B
Desktop File
17 lines
304 B
Desktop File
[Unit]
|
|
Description=Farm Control Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/farmcontrol-server --headless
|
|
Restart=always
|
|
User=root
|
|
Group=root
|
|
Environment=NODE_ENV=production
|
|
Environment=FC_PDFJS_DATA=/usr/lib/farmcontrol-server/pdfjs-data
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|