Kapatid
Kapatid
Explore posts from servers
RRailway
Created by Kapatid on 5/31/2023 in #✋|help
Turborepo in Railway
How can I avoid 2 of my services (frontend-app & backend-app) in one project from always building and deploying when I commit a change to my turbo repo in Github? I already use turbo build --filter <service-name> & npm run start --workspace=<service-name> in the respective settings of the services but they still build and deploy at the same time when I commit something.
16 replies
RRailway
Created by Kapatid on 5/21/2023 in #✋|help
How to connect to my Soketi project in Railway
Based on the example of using Pusher in the website soketi.app, how do I get the wsHostand wsPort after deploying the Soketi template in Railway? My project that will be connecting to this Soketi is a create-t3-app.
let client = new PusherJS('app-key', {
wsHost: '127.0.0.1',
wsPort: 6001,
forceTLS: false,
encrypted: true,
disableStats: true,
enabledTransports: ['ws', 'wss'],
})
let client = new PusherJS('app-key', {
wsHost: '127.0.0.1',
wsPort: 6001,
forceTLS: false,
encrypted: true,
disableStats: true,
enabledTransports: ['ws', 'wss'],
})
14 replies
RRailway
Created by Kapatid on 4/17/2023 in #✋|help
nixpacks build error
=> ERROR [ 9/10] RUN dotnet publish --no-restore -c Release -o out 6.2s
------
> [ 9/10] RUN dotnet publish --no-restore -c Release -o out:
#13 1.291 MSBuild version 17.3.2+561848881 for .NET
#13 5.502 ticketing-system -> /app/bin/Release/net6.0/ticketing-system.dll
#13 5.530 v18.12.1
#13 5.533 Restoring dependencies using 'npm'. This may take several minutes...
#13 5.929
#13 5.929 > [email protected] build
#13 5.929 > tsc && vite build
#13 5.929
#13 5.997 node:internal/modules/cjs/loader:998
#13 5.997 throw err;
#13 5.997 ^
#13 5.997
#13 6.032 EXEC : error : Cannot find module '/app/ClientApp/node_modules/typescript/bin/tsc' [/app/ticketing-system.csproj]
#13 6.032 at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
#13 6.032 at Module._load (node:internal/modules/cjs/loader:841:27)
#13 6.032 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
#13 6.032 at node:internal/main/run_main_module:23:47 {
#13 6.032 code: 'MODULE_NOT_FOUND',
#13 6.032 requireStack: []
#13 6.032 }
#13 6.032
#13 6.032 Node.js v18.12.1
#13 6.032 /app/ticketing-system.csproj(57,3): error MSB3073: The command "npm run build" exited with code 1.
------
=> ERROR [ 9/10] RUN dotnet publish --no-restore -c Release -o out 6.2s
------
> [ 9/10] RUN dotnet publish --no-restore -c Release -o out:
#13 1.291 MSBuild version 17.3.2+561848881 for .NET
#13 5.502 ticketing-system -> /app/bin/Release/net6.0/ticketing-system.dll
#13 5.530 v18.12.1
#13 5.533 Restoring dependencies using 'npm'. This may take several minutes...
#13 5.929
#13 5.929 > [email protected] build
#13 5.929 > tsc && vite build
#13 5.929
#13 5.997 node:internal/modules/cjs/loader:998
#13 5.997 throw err;
#13 5.997 ^
#13 5.997
#13 6.032 EXEC : error : Cannot find module '/app/ClientApp/node_modules/typescript/bin/tsc' [/app/ticketing-system.csproj]
#13 6.032 at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
#13 6.032 at Module._load (node:internal/modules/cjs/loader:841:27)
#13 6.032 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
#13 6.032 at node:internal/main/run_main_module:23:47 {
#13 6.032 code: 'MODULE_NOT_FOUND',
#13 6.032 requireStack: []
#13 6.032 }
#13 6.032
#13 6.032 Node.js v18.12.1
#13 6.032 /app/ticketing-system.csproj(57,3): error MSB3073: The command "npm run build" exited with code 1.
------
I am trying to build a dotnet project in my machine using nixpacks build but in step 9 I get this error and I am not sure how to fix it. My understanding is that it maybe because I have typescript globally installed in my local machine? Let me know if I need to give more error outputs. Thank you
6 replies
RRailway
Created by Kapatid on 4/17/2023 in #✋|help
nixpacks build error
=> ERROR [ 9/10] RUN dotnet publish --no-restore -c Release -o out 6.2s
------
> [ 9/10] RUN dotnet publish --no-restore -c Release -o out:
#13 1.291 MSBuild version 17.3.2+561848881 for .NET
#13 5.502 ticketing-system -> /app/bin/Release/net6.0/ticketing-system.dll
#13 5.530 v18.12.1
#13 5.533 Restoring dependencies using 'npm'. This may take several minutes...
#13 5.929
#13 5.929 > [email protected] build
#13 5.929 > tsc && vite build
#13 5.929
#13 5.997 node:internal/modules/cjs/loader:998
#13 5.997 throw err;
#13 5.997 ^
#13 5.997
#13 6.032 EXEC : error : Cannot find module '/app/ClientApp/node_modules/typescript/bin/tsc' [/app/ticketing-system.csproj]
#13 6.032 at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
#13 6.032 at Module._load (node:internal/modules/cjs/loader:841:27)
#13 6.032 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
#13 6.032 at node:internal/main/run_main_module:23:47 {
#13 6.032 code: 'MODULE_NOT_FOUND',
#13 6.032 requireStack: []
#13 6.032 }
#13 6.032
#13 6.032 Node.js v18.12.1
#13 6.032 /app/ticketing-system.csproj(57,3): error MSB3073: The command "npm run build" exited with code 1.
------
=> ERROR [ 9/10] RUN dotnet publish --no-restore -c Release -o out 6.2s
------
> [ 9/10] RUN dotnet publish --no-restore -c Release -o out:
#13 1.291 MSBuild version 17.3.2+561848881 for .NET
#13 5.502 ticketing-system -> /app/bin/Release/net6.0/ticketing-system.dll
#13 5.530 v18.12.1
#13 5.533 Restoring dependencies using 'npm'. This may take several minutes...
#13 5.929
#13 5.929 > [email protected] build
#13 5.929 > tsc && vite build
#13 5.929
#13 5.997 node:internal/modules/cjs/loader:998
#13 5.997 throw err;
#13 5.997 ^
#13 5.997
#13 6.032 EXEC : error : Cannot find module '/app/ClientApp/node_modules/typescript/bin/tsc' [/app/ticketing-system.csproj]
#13 6.032 at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
#13 6.032 at Module._load (node:internal/modules/cjs/loader:841:27)
#13 6.032 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
#13 6.032 at node:internal/main/run_main_module:23:47 {
#13 6.032 code: 'MODULE_NOT_FOUND',
#13 6.032 requireStack: []
#13 6.032 }
#13 6.032
#13 6.032 Node.js v18.12.1
#13 6.032 /app/ticketing-system.csproj(57,3): error MSB3073: The command "npm run build" exited with code 1.
------
I am trying to build a dotnet project but in step 9 I get this error and I am not sure how to fix it. My understanding is that it maybe because I have typescript globally installed in my local machine? Let me know if I need to give more error outputs. Thank you
4 replies
RRailway
Created by Kapatid on 1/31/2023 in #✋|help
Error when Deploying a AspNetCore_Vite_Starter
I used a starter template for a dotnet project in Visual Studio 2022 but failed to deploy in Railway called AspNetCore_Vite_Starter which can be found in https://marketplace.visualstudio.com/items?itemName=MakotoAtsu.AspNetCoreViteStarter&ssr=false. Here is my sample repo https://github.com/nadjitan/dotnet-vite-react. Here is my logs:
// Omitted some logs

#12 8.080 dotnet-vite-react -> /app/bin/Release/net6.0/dotnet-vite-react.dll
#12 8.093 /bin/sh: 2: /tmp/MSBuildTemproot/tmp5cd94e3b87b14e0bab941ac33a8bac37.exec.cmd: node: not found

#12 8.094 /app/dotnet-vite-react.csproj(38,3): warning MSB3073: The command "node --version" exited with code 127.
#12 8.094 /app/dotnet-vite-react.csproj(41,3): error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.

#12 ERROR: executor failed running [/bin/bash -ol pipefail -c dotnet publish --no-restore -c Release -o out]: exit code: 1
-----
> [8/9] RUN dotnet publish --no-restore -c Release -o out:
-----

executor failed running [/bin/bash -ol pipefail -c dotnet publish --no-restore -c Release -o out]: exit code: 1

Error: Docker build failed
// Omitted some logs

#12 8.080 dotnet-vite-react -> /app/bin/Release/net6.0/dotnet-vite-react.dll
#12 8.093 /bin/sh: 2: /tmp/MSBuildTemproot/tmp5cd94e3b87b14e0bab941ac33a8bac37.exec.cmd: node: not found

#12 8.094 /app/dotnet-vite-react.csproj(38,3): warning MSB3073: The command "node --version" exited with code 127.
#12 8.094 /app/dotnet-vite-react.csproj(41,3): error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.

#12 ERROR: executor failed running [/bin/bash -ol pipefail -c dotnet publish --no-restore -c Release -o out]: exit code: 1
-----
> [8/9] RUN dotnet publish --no-restore -c Release -o out:
-----

executor failed running [/bin/bash -ol pipefail -c dotnet publish --no-restore -c Release -o out]: exit code: 1

Error: Docker build failed
5 replies
RRailway
Created by Kapatid on 12/2/2022 in #✋|help
ASP.Net MVC 6 Deployment
Does anyone know how to deploy and ASP.Net MVC in Railway with a MySQL database?
51 replies