Skip to content

feat: add railway configuration and seed script for PR environment setup#14

Merged
JoachimLK merged 3 commits intomainfrom
testing/seed-data-railway
Feb 20, 2026
Merged

feat: add railway configuration and seed script for PR environment setup#14
JoachimLK merged 3 commits intomainfrom
testing/seed-data-railway

Conversation

@JoachimLK
Copy link
Copy Markdown
Contributor

This pull request adds support for seeding lightweight demo data specifically for pull request (PR) environments, making it easier to preview and test the application in preview deployments (such as Railway PR environments). The changes include a new seed script, new npm scripts, and Railway deployment configuration to automate the seeding process.

PR Environment Seeding Support

  • Added a new script server/scripts/seed-pr.ts that seeds demo data for PR environments, including 1 organization, 5 recruiter users, 5 candidates, 5 jobs, and 5 applications. The script is idempotent and only runs in PR/preview environments or when explicitly forced.
  • Introduced a new npm script db:seed:pr in package.json to run the PR seed script.
  • Added a new npm script start:railway that pushes the database schema, seeds the PR data, and starts the server, streamlining Railway deployments.
  • Added a railway.json configuration file to automatically run the PR seed script before deployments and start the application with the correct command in Railway environments.## Summary

@railway-app railway-app Bot temporarily deployed to applirank / applirank-pr-14 February 20, 2026 10:21 Destroyed
@railway-app
Copy link
Copy Markdown

railway-app Bot commented Feb 20, 2026

🚅 Deployed to the applirank-pr-14 environment in applirank

Service Status Web Updated (UTC)
applirank ✅ Success (View Logs) Web Feb 20, 2026 at 10:48 am

@railway-app railway-app Bot temporarily deployed to applirank / applirank-pr-14 February 20, 2026 10:42 Destroyed
@railway-app railway-app Bot temporarily deployed to applirank / applirank-pr-14 February 20, 2026 10:46 Destroyed
@JoachimLK JoachimLK merged commit 3c5c0b0 into main Feb 20, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant