Tockus
Tockus
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
@Brody sorry for off-topic question, but do you know how to access deployed files as my bot writes some files and I would like to have access to them? Or is deployment basically unaccessible?
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
thank you)
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
damn could you quickly remind me how to mark problem as resolved?
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
Sometimes it does, yes, when I edit prompts and such, so as often as code changes
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
hm I haven't seen how to do that
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
@Brody thank you too! and have a good evening
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
I guess if there's no other way to seed files into deployments yet, then that is one of few ways to make it work :)
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
I have removed .gitignore, have run railway up, so it succesfully built, deployed my app to remote and now I can revert removal with 2 clicks.
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
hell yeah, it works at least!
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
So there's no way of including gitignored files in build process? I guess I will try to remove gitignore just for railway up command
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
Lmao that is out of scope of my competence. I've developed simple telegram bot in a couple of hours and don't want to go as far as spreading project files across multiple webservices :D I just hope to deploy it remotely so it won't be spinning on my local machine )
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
But when I was creating service on website, I have selected "empty service", could that be a problem?
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
doesn't look like, that is what I've got:
PS C:\Users\user\Stash\git\shizo-bot> cd build
PS C:\Users\user\Stash\git\shizo-bot\build> railway link
> Select a project unhealthy-plough
> Select an environment production
> Select a service cli deploys
PS C:\Users\user\Stash\git\shizo-bot\build> railway up
Indexed Compressed [====================] 100%
Uploaded
Build Logs:
[Region: us-west1]
==============
Using Nixpacks
==============
context: 589e11df9e77597373d50c82d4b491f0
Nixpacks build failed

Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:

bundle.js
.env.local
chatgpt-presets.local.json
node_modules_formdata-node_lib_esm_fileFromPath_js.bundle.js

Build failed
PS C:\Users\user\Stash\git\shizo-bot\build>
PS C:\Users\user\Stash\git\shizo-bot> cd build
PS C:\Users\user\Stash\git\shizo-bot\build> railway link
> Select a project unhealthy-plough
> Select an environment production
> Select a service cli deploys
PS C:\Users\user\Stash\git\shizo-bot\build> railway up
Indexed Compressed [====================] 100%
Uploaded
Build Logs:
[Region: us-west1]
==============
Using Nixpacks
==============
context: 589e11df9e77597373d50c82d4b491f0
Nixpacks build failed

Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:

bundle.js
.env.local
chatgpt-presets.local.json
node_modules_formdata-node_lib_esm_fileFromPath_js.bundle.js

Build failed
PS C:\Users\user\Stash\git\shizo-bot\build>
Same thing on railway logs from website.
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
is there a way I can just scoop everything from /build and deploy it to remote via CLI? or is there a way I can provide that file to deployment via website interface? I haven't seen such an option, only env variables can be set, but that's it
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
basically same principle as with .env, .env.default, .env.dev files
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
@Brody So I have a couple of files:
chatgpt-presets.local.json // not ignored
chatgpt-presets.default.json // ignored
chatgpt-presets.local.json // not ignored
chatgpt-presets.default.json // ignored
chatgpt-presets.default.json is file with default strings I use to prompt ChatGPT. Basically usecase for that file is to be used by other devs when they are trying out my application. chatgpt-presets.local.json is "production" file that I put personalized prompts inside. I don't want to share these on web with anyone, this file is for local development only and it happens that I want to deploy build with using that file instead default one.
33 replies
RRailway
Created by Tockus on 1/13/2024 in #✋|help
Can't figure out how to deploy Node.js project from CLI.
N/A
33 replies