2 years ago
Hi, my name is Jan.
I don't know much about deploying apps and i want to ask you for help with deploying project from this repository: https://github.com/JaniszD/snakeesz .I added code via this repository and added variables from .env file (there is .env.example file if needed) to variables tab and got this error after starting deploying:
[Region: us-west1]
==============
Using Nixpacks
==============
context: 871e013a74f10c79fba98b37d2ad2039
Nixpacks build failed
╔════════ Nixpacks v1.21.2 ═══════╗
║ setup │ nodejs18, npm-9x ║
║─────────────────────────────────║
║ install │ npm ci ║
║─────────────────────────────────║
║ start │ ║
╚═════════════════════════════════╝
Error: No start command could be found
I took the code from the Ton Network site who give free to use demo repo: https://github.com/ton-community/flappy-bird and set .env file.
Thank you in advance for your help and support. ;)
ⓘ Deployment information is only viewable by Project members and Railway admins.
7 Replies
2 years ago
I could even pay for help.
2 years ago
This repo contains both a server and a client, thus it's a tad bit more involved to get it to properly deploy on Railway, I'll try to make that happen when I have some free time.
2 years ago
Here is a template to get you going - https://railway.app/template/cTRfYe
You likely will need some extra tuning to get it running just right, but that should give you a good starting point, it's untested since I have no way to properly test it. but let me know how it goes!
2 years ago
It deployed and gave me two links: client which show white screen and server which show {"message":"Route GET:/ not found","error":"Not Found","statusCode":404} what should i do next? I really appreciate your help man!
Here are logs from deployment of client:
> client@0.0.1 start
> concurrently "npm run expose" "webpack serve --mode production"
[0]
[0] > client@0.0.1 expose
[0] > env-cmd -f ../../.env node ./expose-localhost.js
[0]
[0] Ngrok is not enabled.
[0] npm run expose exited with code 0
[1] [webpack-dev-server] [HPM] Proxy created: /api -> http://localhost:3000
[1] [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/api" ~> ""
[1] [webpack-dev-server] Project is running at:
[1] [webpack-dev-server] Loopback: http://localhost:4000/
[1] [webpack-dev-server] Content not from webpack is served from '/app/workspaces/client/dist' directory
[1] asset bundle.js 2.05 MiB [emitted] [minimized] [big] (name: main) 1 related asset
[1] orphan modules 71.6 KiB [orphan] 17 modules
[1] runtime modules 27.3 KiB 13 modules
[1] modules by path ../../node_modules/@ton/ 647 KiB 169 modules
[1] modules by path ../../node_modules/@ton-community/assets-sdk/ 182 KiB 30 modules
[1] modules by path ../../node_modules/zod/lib/ 145 KiB 10 modules
[1] modules by path ../../node_modules/@tonconnect/ 467 KiB 5 modules
[1] modules by path ../../node_modules/webpack-dev-server/client/ 71.8 KiB 4 modules
[1] modules by path ../../node_modules/webpack/hot/*.js 5.18 KiB 4 modules
[1] modules by path ../../node_modules/html-entities/lib/*.js 81.8 KiB
[1] ../../node_modules/html-entities/lib/index.js 7.91 KiB [built] [code generated]
[1] + 3 modules
[1] modules by path ../../node_modules/@orbs-network/ton-access/ 10.8 KiB
[1] ../../node_modules/@orbs-network/ton-access/lib/index.js 6.74 KiB [built] [code generated]
[1] + 2 modules
[1] + 22 modules
[1]
[1] WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
[1] This can impact web performance.
[1] Assets:
[1] bundle.js (2.05 MiB)
[1]
[1] WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
[1] Entrypoints:
[1] main (2.05 MiB)
[1] bundle.js
[1]
[1] WARNING in webpack performance recommendations:
[1] You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
[1] For more info visit https://webpack.js.org/guides/code-splitting/
[1]
[1] webpack 5.90.1 compiled with 3 warnings in 27495 ms
And from server:
> server@0.0.1 start
> ts-node src/index.ts
query: SELECT * FROM "sqlite_master" WHERE "type" = 'table' AND "name" = 'migrations'
query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
query: SELECT "Global"."key" AS "Globalkey", "Global"."value" AS "Globalvalue" FROM "global" "Global" WHERE ("Global"."key" = ?) LIMIT 1 -- PARAMETERS: ["lastknowntx"]
Server listening at http://0.0.0.0:3000
query: SELECT "Item"."id" AS "Itemid", "Item"."cost" AS "Itemcost", "Item"."name" AS "Itemname", "Item"."systemName" AS "ItemsystemName", "Item"."type" AS "Item_type" FROM "item" "Item" WHERE (0=1)
query: INSERT INTO "global"("key", "value") VALUES (?, ?) ON CONFLICT ( "key" ) DO UPDATE SET "value" = EXCLUDED."value" -- PARAMETERS: ["lastknowntx","MJKOExJPiaiE+pHQ/FP3adKuvNcndn68+BuCdR/oPuA=:20584259000001"]
incoming request
request completed
incoming request
request completed
incoming request
Route GET:/ not found
request completed
incoming request
request completed
incoming request
request completed
incoming request
Route GET:/ not found
request completed
incoming request
Route GET:/ not found
request completed
incoming request
Route GET:/ not found
request completed
incoming request
request completed
incoming request
Route GET:/ not found
request completed
incoming request
Route GET:/ not found
request completed
incoming request
request completed
incoming request
Route GET:/ not found
request completed
2 years ago
/
2 years ago
Hi,
I removed ngrok form my project. I deployed server and client. Everything works the same as on my localhost but website show blank screen. I was thinking that i maybe need to add listening for railway website. What should i do?