Tockus
Tockus
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
Good day everyone, I'm having issues figuring out how to deploy project from local terminal using railway CLI. I'm new to Railway, but I've went through docs. Basically I have files (.js, .json) inside /build folder that I would like to just deploy, but I can't understand how to do that locally. Why do I need to do that locally -- I have .json file that is .gitignored and should not go into git repo, so running build command from GitHub repo won't work in my case. What I tried: I tried linking project, service with railway link, then running railway up that seems to run build script, which is great, but then it can't finish build as it can't locate gitignored files. Maybe there would be a flag to include gitignored files into building scope?
5.762 ERROR in unable to locate '/app/config/chatgpt-presets.local.json' glob
5.762 ERROR in unable to locate '/app/config/chatgpt-presets.local.json' glob
And I'm trying to copy that file into /build folder via webpack script:
new CopyPlugin({
patterns: [
{from: path.join('config', 'chatgpt-presets.local.json')},
new CopyPlugin({
patterns: [
{from: path.join('config', 'chatgpt-presets.local.json')},
33 replies