R
Railwaycerwind

Manually Deploy from Branch?

There doesn't seem to be a clear way to manually deploy from a branch? I had a server that was auto deploying from main but I now want to manually deploy new changes instead but I can only redeploy the previous deployment...surely I'm missing something here...?
P
Percy15d ago
Project ID: c61c1785-a8d8-43d0-9d8b-6bd1f69aa3bf
C
cerwind15d ago
c61c1785-a8d8-43d0-9d8b-6bd1f69aa3bf
A
Adam15d ago
There is no button to manually deploy from a branch, but if you change any environment variables then the changes are automatically pulled and your app will deploy from the source.
C
cerwind15d ago
Ah ok thanks, just wanted to make sure I wasn't missing anything - I could just have an env var I'll toggle. Could you not have a button that just says "Deploy from Source" in the settings that does that in the background? Just feels a little weird I can't deploy at will without and env var workaround?
A
Adam15d ago
The team is actually working on this as we speak, there is a preview out atm but it seems unreliable so far
C
cerwind15d ago
Ah brilliant Happy to be a guinea pig if you one *need
B
Brody15d ago
so little correction, changing an environment variable does not pull the latest code, it only redeploys the recent deployment. yes the team is working on a manual deploy button, but you need to have a branch connected for that button to deploy from anything other than main, meaning you also have automatic deployments on push since there is no way to have a branch connected and disable auto deployments.
D
Duchess15d ago
New reply sent from Help Station thread:
You can turn off automatic deploys by disconnecting the branch on the service settings page. You can also then deploy the latest commit via the command palette "Cmd+K">"Deploy latest commit"
You're seeing this because this thread has been automatically linked to the Help Station thread.
B
Brody15d ago
Doesnt that just deploy from main?
D
Duchess15d ago
New reply sent from Help Station thread:
Yes it will use the default branch. Sorry I misunderstood. I thought that the OP wanted to deploy from main
You're seeing this because this thread has been automatically linked to the Help Station thread.
C
cerwind15d ago
Ok that's useful to know, so the current workaround is to just keep the server disconnected until I want to deploy and then switch on auto deploys so it deploys and then re-disconnect it?
B
Brody15d ago
that, or only push to that branch when you want to deploy
C
cerwind15d ago
For context (this might help as to why I want to do this) I have a Web server and a Worker server. The Worker server runs background jobs and is linked to the same GitHub repo as the Web server, so we often make dozens of deploys a day to the Web Server but if there's jobs being run mid way through the Worker server we don't want to interrupt them so that's why I don't want auto-deploys on the Worker server and just want to deploy manually (i.e. when it's safe and no background jobs are running)
A
Adam14d ago
If the two apps are in a monorepo, you can set up a watch path to only redeploy the worker when it’s files are changed
Want results from more Discord servers?
Add your server
More Posts
Build Command Helpis it possible to make railway use dotnet 4.8 instead of 6.0?Read and write txt file in repositoryI have a github repository with a python script, Procfile, requirements.txt and points.txt but the pBuild PHP 7.3 with Laravel. How can i do it?I have an old application. How can i make build in service?TLS certificate has taken over 24 hours for a custom domainI have 2 custom domains - 1 using a subdomain and 1 using the root. The one on the subdomain is workRedis For Vector Search (GenAI)I have Redis database deployed on Railways Pro plan. I want to add LLM Retrieval Augmented GeneratioWhat is the best way to install private npm packages?My usecase is that my node app needs to install a package from a private github registry. What I wouCron job not running at specific timeHi I have a cron job that should run every hour 0 * * * *. For some reason, it skips runs sometimHow much is Railways scalable?Is there any information how much it is scalable in reality? According to the price, can the serviceCORS Policy problem with backboard.railway.app/graphqlI'm getting a CORS error in my console when using the Railway dashboard. ``` Access to fetch at 'hOutbound ip addressesHi, what are railway's outbound ip addressesBest way to setup back up system for my postgres?Looking to do a backup every X number of hoursRailway <> Hetzner servers cant communicateWe had a deployment running succesfully for the last week today, the railway instances cant communihow to remove docker cache ?it is always just using cache, and not rebuilding correclyDeployment HelpApologies i have 3 things to deploy and i dont know how to do itCannot Access Railway APIJust noticed that I am unable to access the full public API and the GraphQL Playground isn't workingHow do I create a config file?In the [documentation](<https://docs.railway.app/guides/config-as-code>) for Railway configuration fRedis Connection FailureProject ID: d09cd450-b0ba-483f-ae0c-5e329305f433 Redis is refusing connnections.504 Gateway Timeout issueAll of a sudden my production application starts throwing up 504 error. There are no error logs and Vite React ThreejsI copy nixpacks.toml and Caddyfile from this repository <https://github.com/brody192/vite-react-temSQLalchemy could not translate host name "postgres.railway.internal"Basically I'm making a engine with env var stored in DATABASE_PRIVATE_URL that references my Postgre