Commit graph

611 commits

Author SHA1 Message Date
Paulo Cabral Sanz
a4984de90f
Use workspace based queries/mutations (#664)
Team concept is being removed from the platform
2025-09-11 19:59:51 -03:00
Jake Runzer
00f7ed24a0 chore: Release railwayapp version 4.7.3 2025-09-10 13:23:20 -04:00
Jake Runzer
38276dfcc5 chore: Release railwayapp version 4.7.2 2025-09-10 13:21:44 -04:00
Jake Runzer
cc8e37da3a chore: Release railwayapp version 4.7.1 2025-09-10 13:21:24 -04:00
Jake Runzer
e709430190 chore: Release railwayapp version 4.7.0 2025-09-10 13:19:47 -04:00
Jake Runzer
e4cb0906da newline at end of gitignore 2025-09-10 13:19:35 -04:00
Jake Runzer
d5d4c431f3
Fix environment duplication timeout when process takes longer than 30s (#663)
* Fix environment duplication timeout by using background processing

- Add applyChangesInBackground parameter to EnvironmentCreate mutation
- Implement polling mechanism to wait for duplication completion
- Use background processing when duplicating environments to avoid 30s timeout
- Add retry utility with 2-minute timeout and 5-second intervals
- Show progress messages during environment creation and duplication

* Update GraphQL schema with latest API changes

* Improve environment duplication UX with cleaner messaging

- Remove verbose retry logging and status messages for smoother experience
- Keep single "Creating environment..." spinner throughout process
- Add function documentation for wait_for_environment_creation
- Optimize retry timing: start at 1s with 1.5x backoff, max 5s
- Unified success message regardless of duplication mode

* Clean up environment duplication code after review

- Remove ephemeral comments and improve code clarity
- Handle COMMITTED status as success case in polling
- Optimize variable cloning in retry closure
- Update comment to better explain duplication status checking
2025-09-10 13:17:35 -04:00
Jake Runzer
296e2008db
Add retry logic with exponential backoff for build log streaming (#662)
* Add retry logic with exponential backoff for build log streaming

- Create generic retry utility with configurable attempts and backoff
- Add optional logging callback for better control over retry messages
- Update build/deploy log streaming to retry initial connection attempts
- Silent retries by default for log streaming to avoid noise

* Simplify retry logic to only retry connection establishment

Remove unnecessary wait for first log behavior - just retry the GraphQL subscription connection itself.
2025-09-09 21:37:12 -04:00
Jake Runzer
273072a69f
Add CLAUDE.md with development guidance (#661)
* Add CLAUDE.md with development guidance

Provides essential commands and architecture overview for Claude Code to work effectively in this repository.

* Fix clippy warnings

Apply automatic fixes from cargo lint-fix.

* Update CLAUDE.md and apply code formatting

Add guidance to run cargo fmt after making changes and apply formatting.
2025-09-09 20:20:10 -04:00
Brody Over
3ffa987b62
Support --json for the whoami command (#658) 2025-08-14 16:17:48 -07:00
Brody Over
c0e98357c0 chore: Release railwayapp version 4.6.3 2025-08-12 21:10:22 -04:00
Brody Over
eed470ed74 chore: Release railwayapp version 4.6.2 2025-08-12 20:12:26 -04:00
Brody Over
3e0a5c8036
Add --workspace option to railway init (#656)
* Add workspace option to init command
2025-08-12 20:11:21 -04:00
Alexander Ng
2611ed9e34
fix: update check no longer relies on config (#654)
Co-authored-by: Jake Runzer <jakerunzer@gmail.com>
2025-08-04 21:39:39 -04:00
Jake Runzer
221834f212 chore: Release railwayapp version 4.6.1 2025-08-04 17:08:03 -04:00
Milo
21c4c746f2
nicer error for ratelimits (#648) 2025-08-04 16:53:27 -04:00
Milo
a5e9e04b48
clippy fixes (#653) 2025-08-04 16:52:24 -04:00
Faraz Patankar
6b01e328e7 chore: Release railwayapp version 4.6.0 2025-08-01 21:36:22 +04:00
Faraz Patankar
ad8cf7fac2
bail with warning when no options selected on add (#652)
* bail with warning when no options selected on add

* fmt
2025-07-31 12:30:10 +04:00
Milo
311766cb36
railway functions (#643) 2025-07-30 17:06:13 -07:00
Faraz Patankar
110e47df8a chore: Release railwayapp version 4.5.6 2025-07-29 11:17:08 +04:00
Faraz Patankar
4f8fb927a4
allow skipping deploys when setting variables (#646) 2025-07-29 11:02:36 +04:00
ndneighbor
f1841c2a0a chore: Release railwayapp version 4.5.5 2025-07-17 01:01:02 -04:00
Milo
0867c9b5c5
named sessions (#641) 2025-07-17 00:53:45 -04:00
Faraz Patankar
8afbc1c816 chore: Release railwayapp version 4.5.4 2025-06-27 10:57:53 +04:00
Faraz Patankar
de07c20830
bump gql client timeout to 30s (#636) 2025-06-27 10:52:10 +04:00
Jake Runzer
7bdc0ab117 chore: Release railwayapp version 4.5.3 2025-05-27 14:48:58 -04:00
Jake Runzer
1ebb7e1cb7
More aggressive reconnects with ssh session mode (#634)
* more reconnect attempts for ssh session mode

* set mouse setting immedialtey
2025-05-27 14:32:10 -04:00
Jake Runzer
a7ef60b741 chore: Release railwayapp version 4.5.2 2025-05-23 19:09:02 -04:00
Jake Runzer
84f420414e
filter deleted projects from link command (#633)
* filter deleted projects from link command

* imports
2025-05-23 18:34:02 -04:00
Faraz Patankar
9794864e74 chore: Release railwayapp version 4.5.1 2025-05-14 22:47:06 +04:00
Jake Runzer
95801e1f2c
remove global json flag (#631) 2025-05-14 22:44:37 +04:00
Milo
c5a2280290
Fix the --json flag (#630)
* fix json

* remove dbg
2025-05-14 20:35:14 +04:00
Jake Runzer
ff77313f3d chore: Release railwayapp version 4.5.0 2025-05-09 17:16:37 -04:00
Jake Runzer
528f675bde
SSH session mode (#628)
* start of ssh --tmux flag

* small refactoring

* reconnect sort of working

* auto reconnect on disconnect

* better spinners

* lint fix

* fix tmux connect

* comment

* fix windows

* rename --tmux to --session

* fix mouse scrolling
2025-05-09 16:55:54 -04:00
Jake Runzer
2949f5a01c chore: Release railwayapp version 4.4.1 2025-05-09 03:06:50 -04:00
Linus Lee
97c53a322a
Check stdin when checking for interactive tty in unlink (#627)
Only checking stdout().is_terminal() means when running railway unlink
in a non-interactive context, but with visible outputs (e.g. shell
pipeline) the confirmation prompt fails rather than defaulting to "Yes".
2025-05-09 03:05:18 -04:00
Jake Runzer
62eb840ad5 chore: Release railwayapp version 4.4.0 2025-05-07 14:45:02 -04:00
M. Casqueira
408190fd9a
impl ready and stand_by handshake for SSH (#622) 2025-05-05 19:08:05 -04:00
Paulo Cabral Sanz
ae9bd95396 chore: Release railwayapp version 4.3.0 2025-04-30 15:30:16 -03:00
Milo
3ed5600b86
railway scale (#604)
* macro overhaul

* argument parsing works!

* working on it

* very complex scale command lol

* fix conflicts

* make command work and address comments
2025-04-30 15:29:22 -03:00
Paulo Cabral Sanz
d250655a4e
Log 413 reason (#625)
We assume it's because the file is too large, but we don't know where the limit comes from and if that's the case. A middleware we use limits multipart field size for example. Logs this so we try to narrow the cause, so we can document the upload limit.

Related to: PRO-4145
2025-04-30 12:15:29 -03:00
Paulo Cabral Sanz
131f02b7b0 chore: Release railwayapp version 4.2.0 2025-04-28 13:31:05 -03:00
Paulo Cabral Sanz
2e96af2a1b
Revert "Allow connecting to valkey and keydb when using 'connect' cmd (#620)" (#624)
This reverts commit 29abc8f4ec.
2025-04-28 13:30:05 -03:00
Jake Runzer
4f1ac4d58f chore: Release railwayapp version 4.1.0 2025-04-23 21:19:49 -04:00
lasse
29abc8f4ec
Allow connecting to valkey and keydb when using 'connect' cmd (#620) 2025-04-23 19:27:38 -04:00
Jake Runzer
a21b41b3f7 chore: Release railwayapp version 4.0.1 2025-04-23 15:41:24 -04:00
Alexander Ng
4ec8254eae
fix: Show update message only once per 24 hours (#615) 2025-04-23 15:07:28 -04:00
Jake Runzer
4eeae97e4f
import bail (#612) 2025-03-25 22:47:25 -04:00
Yi Rong
d8e3632125
fix: make –no-gitignore actually work (#609)
The ignore crate from ripgrep, by default, includes standard filters
which automatically ignore files listed in .gitignore and other similar files.
Simply not adding .gitignore manually through add_custom_ignore_filename
has no practical effect, causing files listed in .gitignore to remain ignored.

This commit resolves this issue by explicitly disabling the git_ignore handler
in the standard filters. This behavior has been tested locally to confirm that
it correctly bypasses .gitignore.

Signed-off-by: LER0ever <git@r.rongyi.xyz>
2025-03-25 22:32:02 -04:00