Oscar Bustos
Oscar Bustos
RRailway
Created by Oscar Bustos on 3/21/2024 in #✋|help
How to set a CRON job into my project
Hi, I'm trying to understand how to set a CRON job into my project. After read documentation I didn't see how to do it. I have a Astro project deployed and now I would like to create a CRON job to create the sitemap once a day. The command it should run is npm run build:sitemaps Thanks
6 replies
RRailway
Created by Oscar Bustos on 12/14/2023 in #✋|help
Hi!
I have a problem trying to deploy my app. I recognize is quite tricky but it's the best solution I found to have the structure I need. My app it's a Vite/ReactJS app and it runs perfectly, but I need to create a blog so I decide to create a solution with Astro inside my Vite/ReactJS app. So my structure looks like a tipical ReactJS app but I created a /blog folder with a Astro project and I modified my build script and looks like this "build": "vite build && cd blog && npm run build" vite build works fine but I have a problem with Astro
24.63 sh: 1: astro: not found
24.66 error Command failed with exit code 127.
24.66 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
24.63 sh: 1: astro: not found
24.66 error Command failed with exit code 127.
24.66 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Looks like astro build it's not working. I try to add engine: 18 on my package.json but it doesn't works. Thanks for your help and patience
120 replies
RRailway
Created by Oscar Bustos on 6/5/2023 in #✋|help
Trying to deploy Strapi project it fails. It's the same build that works 4 days ago.
Hi I'm trying to deploy a strapi project but it fails. I try to redeploy the same project that builds correctly 4 days ago. But also fails so I think there's something wrong on the CI Here's the build log. Hope it helps
#10 17.66 gyp ERR! find Python
#10 17.66 gyp ERR! find Python Python is not set from command line or npm configuration
#10 17.66 gyp ERR! find Python Python is not set from environment variable PYTHON
#10 17.66 gyp ERR! find Python checking if "python3" can be used
#10 17.66 gyp ERR! find Python - "python3" is not in PATH or produced an error
#10 17.66 gyp ERR! find Python checking if "python" can be used
#10 17.66 gyp ERR! find Python - "python" is not in PATH or produced an error
....
Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/6eac7725-1303-464a-a12e-c54b827c5d96-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile
21 |
22 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1

Error: Docker build failed
#10 17.66 gyp ERR! find Python
#10 17.66 gyp ERR! find Python Python is not set from command line or npm configuration
#10 17.66 gyp ERR! find Python Python is not set from environment variable PYTHON
#10 17.66 gyp ERR! find Python checking if "python3" can be used
#10 17.66 gyp ERR! find Python - "python3" is not in PATH or produced an error
#10 17.66 gyp ERR! find Python checking if "python" can be used
#10 17.66 gyp ERR! find Python - "python" is not in PATH or produced an error
....
Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/6eac7725-1303-464a-a12e-c54b827c5d96-/usr/local/share/cache/yarn/v6,target=/usr/local/share/.cache/yarn/v6 yarn install --frozen-lockfile
21 |
22 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1

Error: Docker build failed
Thanks
37 replies