I am trying to push my code with code:push to monday.com’s servers.
I made up and running the code with npx @mondaydotcomorg/monday-cli@latest scaffold run ./ quickstart-react. Then I had created a Feature on the app’s dashboard. But somehow it failed with the following error:
✖ There was an error deploying the application.
========== Logs ==========
> monday-react-quickstart-app@0.0.1 start
> npm run stop && concurrently "npm run server" "npm run expose"
> monday-react-quickstart-app@0.0.1 stop
> kill-port 8301 && kill-port 4049 && kill-port 4040
sh: 1: kill-port: not found
kill-port is being executed on remote server since kill-port is installed on my local machine.
Thanks for your quick reply. My app has a board view feature not integration. But this is not the case I guess. On server side there is no kill-port binary. Normally it should not run the package.json file since there is generated js, css and html file.
@apsimos The quickstart-react sample cannot run on monday code by itself because it’s a client only code (single page application). monday code runs server side code, so if you want to run client code, you will need to either:
Package it and upload as zip to our CDN
Add your own server that runs on monday code and serves the static files
We released lately a new capability that you can try and start from, which creates a new fullstack application from a template, and it’s suited for deploying on monday code. You can do it by running:
Building the app and uploading it to monday.com makes the trick. But I have followed the instructions that monday.com promotes. I think there is a UX problem. That is my thought.
As @gregra says here, it is not possible to upload client side application’s code the the monday servers via the mapps tool. He stresses also if the app should go via the the mapps tool it needs to be wrapped with a server side code.
But actually I do not want a server side code. I need to pipeline this client side application to CI/CD leveraging mapps tool without spinning a server side code like express in nodejs.
The goal is to mitigate error prone deploys manually such as I have many features for an app and I need to install the code for every feature which is potentially leads to missing feature deployment.
Is there a magic way or workaround to use CI/CD pipeline with single page react applications. Any help is appreciated.
The simplest way to do this with mapps would be to deploy an empty nodejs project, but add your current built code into the static directory.
This would mean you have a web server serving your code, and you can automatically deploy it using your CI/CD pipeline. Monday code would also give you some obervability and access logs.