Auto-deploy on Github not working
jherr
HOBBYOP

a year ago

My branch is main, the github repo is public, the GitHub integration is enabled and all the permissions are granted. But when I push to main it doesn't auto-deploy. I can 'check for updates' and then update, but I'd like it to be automatic.

Solved

24 Replies

jherr
HOBBYOP

a year ago

a21be923-5623-4bcf-bae3-7fa0d2379288


a year ago

Hello,

Services deployed from templates do not auto deploy.

You would want to disconnect the source, and then reconnect your desired repo.


jherr
HOBBYOP

a year ago

This wasn't created from a template, it was created with the Deploy from GitHub Repo command.


a year ago

If it has the Check for updates button, it was deployed from a template.


jherr
HOBBYOP

a year ago

Does having a railway.toml file count? https://github.com/jherr/railway-start-simple/blob/main/railway.toml because all i'm doing in there is just setting the start command.


a year ago

I will take a look at your service and advise shortly.


a year ago

Yes this service was deployed from a template, this button only appears for services deployed from templates.

1388521629298069575


a year ago

So this advice stands 🙂


jherr
HOBBYOP

a year ago

i genuinely didn't do that. i really did just deploy from a github project. but that project does have a railway.toml.


jherr
HOBBYOP

a year ago

the deploying ... section shows when i deploy a different project from a template. but does not appear in the railway-start-simple case.

1388524390076911616

1388524390332895252


a year ago

Please try the advise I gave and let me know if it works!


jherr
HOBBYOP

a year ago

Yeah, that works, but that's a terrible flow.

If I have a railway.toml that defines the start command:

  1. Deploy from github project (no I didn't use a template)
  2. Disconnect from the github project for no reason
  3. Reconnect to the same github project for no reason
  4. Rebuild and re-deploy no changes

If I don't have a railway.toml file:

  1. Deploy from github project (no I didn't use a template)
  2. Watch it deploy what will be a non-functional setup
  3. Alter the start command and re-deploy (requires an entire rebuild)
  4. Try to push to github and auto-deploy and ... it doesn't work So back to step 2 above where I have to disconnect again

Yeah, so it's not even an issue with their being a railway.toml file at all. This just seems to not-auto deploy unless you disconnect/reconnect to the same repo.


a year ago

A railway.toml file has no involvement in this flow.


a year ago

> no I didn't use a template

I'm not sure I understand why you don't think that's the case, you deployed your own template -


jherr
HOBBYOP

a year ago

that was a DIFFERENT project. I was just showing the different between a template generated project and one deployed from a github repo.


jherr
HOBBYOP

a year ago

Here is a project I just generated from a repo: fd684663-de1c-41fb-bf22-0c3842bb6aaa


jherr
HOBBYOP

a year ago


jherr
HOBBYOP

a year ago

here is a screen capture (edited for time) that shows that's deployed from a repo and still has "Check for Updates"


a year ago

Railway probably thinks that you do not own that repository (it thinks it's a public repository from someone else). Instead of copying the entire URL, search for your repository name in the search bar and wait until it pops up as an option.


jherr
HOBBYOP

a year ago

Ok, thanks.


a year ago

If it is what I said, I would recommend opening a #🤗|feedback thread about that.


a year ago

Yep thalles is correct, you are deploying your repo as if it was a public repo, thus deploying it as a template service.


a year ago

well, he left


a year ago

!s


Status changed to Solved brody 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...