For updating my site should I manually git pull or use Github Actions?
22blaster
PROOP

10 months ago

I was given access to a project at work that is a Wordpress site that uses a Railway template (Wordpress + Adminder + Mariadb). I have this theme I am using, and I have it in my repo. I want to know is the best way for my to keep my theme updated:

**A) **Log in via SSH, git clone my theme, and then any time I want it updated, I ssh in and git pull

B) I use Github Actions and make some script that can log into the server….actually is this even possible based on how you need to authenticate with Railway to log in in via SSH and …maybe that cant be done with Github Actions?

Also…the server that I ssh into, its a full server meaning I can install git via apt-get install and treat the entire thing as if its a basic VPS or what?

Solved

13 Replies

22blaster
PROOP

10 months ago

d7ab35fc-ff00-4b28-b170-b9fbf1da08c9


brody
EMPLOYEE

10 months ago

Hello,

The WordPress image is likely Ubuntu based so apt-get will work, just keep in mind that the filesystem is not persistent so whatever you do in the shell will not persist between deployments.

As for keeping the theme updated, it's honestly whatever works best for you, it's not a Railway specific question so unfortunately I cannot be of much help.


22blaster
PROOP

10 months ago

thank you, but im still a little confused. If its a image based, this means I dont have a repo to even push to do deployments, so is that part relative or….I can do deployments?


brody
EMPLOYEE

10 months ago

you would need to upload your theme somehow, unfortunately I cannot provide support for 3rd party software


22blaster
PROOP

10 months ago

thank you, and if I wanted to go a route where I can use Github Actions, is the key to NOT use a image based setup and do it manually and connect to my repo?


brody
EMPLOYEE

10 months ago

i think that would be a massive overcomplication


22blaster
PROOP

10 months ago

what is preventing me from where I push to my repo, and I want Github actions to SSH into my railway server to do git pull or something like that?


22blaster
PROOP

10 months ago

Im assuming its my Railway setup?


22blaster
PROOP

10 months ago

you said deployments would wipe anything I added, so im confused …what deployments?


brody
EMPLOYEE

10 months ago

Wordpress deployments.

Again, you can do what you want, but that is a massive overcomplication, you just need to install a theme, do not overthink this.


22blaster
PROOP

10 months ago

ahhh


22blaster
PROOP

10 months ago

ok, thank you sir


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...