coloneljelly
coloneljelly
RRailway
Created by coloneljelly on 6/24/2024 in #✋|help
PostgreSQL Custom Docker Image With Volume Entrypoint Questions
Hello, I have a Docker Image for PSQL with a volume attatched to that service that I am trying to run, on initial startup however, I get the following: PostgreSQL Database directory appears to contain a database; Skipping initialization. How can I have a volume attached but still get this to run? Thanks!
17 replies
RRailway
Created by coloneljelly on 5/22/2023 in #✋|help
Error: Cannot find module '/app/dist/index.js'
Hello, I have not made any significant changes to my app, but all of a sudden the build is failing. Here is my JSON NIXPACKS script { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS", "buildCommand": "npm run build" }, "deploy": { "numReplicas": 1, "startCommand": "npm run start", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } } And here is my tsconfig { "compilerOptions": { "module": "commonjs", "esModuleInterop": true, "target": "es6", "noImplicitAny": true, "noUnusedLocals": true, "noEmit": false, "moduleResolution": "node", "sourceMap": true, "skipLibCheck": true, "resolveJsonModule": true, "outDir": "dist", "baseUrl": ".", "strict": true, "paths": { "*": ["node_modules/*"] } }, "files": ["src/types/custom-express.d.ts"], "include": ["src/**/*"] } And my npm script { "name": "placeholder", "version": "1.0.0", "description": "", "main": "dist/index.js", "scripts": { "dev": "nodemon src/index.ts", "start": "node dist/index.js", "build": "tsc" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "nodemon": "^2.0.22", "prisma": "^4.12.0", "ts-node": "^10.9.1", "typescript": "^5.0.3" }, "dependencies": { "@prisma/client": "^4.12.0", "@types/express": "^4.17.17", "@types/luxon": "^3.3.0", "@types/node": "^18.15.11", "body-parser": "^1.20.2", "cors": "^2.8.5", "date-fns": "^2.29.3", "dotenv": "^16.0.3", "express": "^4.18.2", "firebase-admin": "^11.8.0", "jsonwebtoken": "^9.0.0", "luxon": "^3.3.0", "moment": "^2.29.4", "mysql2": "^2.3.3" } } Currently running on my machine with the same npm build npm start workflow. If you have any insight I would greatly appreciate it
52 replies
RRailway
Created by coloneljelly on 3/31/2023 in #✋|help
Can’t find tables after loading them in from local .sql file using command line
Hello, not sure if this isn’t a common pattern(I may just end up using a Docker container for this). I connected to my MySQL DB and initialized it with a local sql file I had. I’m guessing that the data page only shows tables made using the railway tool. Is there a better way to go about this? I have a somewhat large table setup and I don’t want to redo it by hand. Thanks for the help!
5 replies