CLI: no files in local dir after `link` and `service` to new-from-template service, so... no `run`..

Just found Railway, digging it! CLI newb question: so in my first local test-project dir I did my first railway login and railway link and railway service without errors, but the dir is empty. That service was created straight from simple minimalist Go template https://github.com/railwayapp-templates/gin and I kinda thought I'd see those few files in the local dir now. (So I'd tweak them over iteratively to my actual codebase =) Looks like I misunderstood the CLI/local-dir approach. What am I missing? (Naturally, doing the readme's final railway run go run main.go step just results in stat main.go: no such file or directory...)
GitHub
GitHub - railwayapp-templates/gin
Contribute to railwayapp-templates/gin development by creating an account on GitHub.
Solution:
railway link doesn't sync any files, it just links the current folder with the railway project, environment, and service you selected, it expects you already be in your project's folder with your code, but to sync the code you will want to use the git cli or (I prefer) github desktop. have a look at railway --help...
Jump to solution
3 Replies
Solution
Brody
Brody8mo ago
railway link doesn't sync any files, it just links the current folder with the railway project, environment, and service you selected, it expects you already be in your project's folder with your code, but to sync the code you will want to use the git cli or (I prefer) github desktop. have a look at railway --help
meta_leap
meta_leap8mo ago
thanks @Brody ! all makes sense now to me =)
Brody
Brody8mo ago
awsome!
Want results from more Discord servers?
Add your server
More Posts