django-simple-deploy icon indicating copy to clipboard operation
django-simple-deploy copied to clipboard

Support Railway

Open ehmatthes opened this issue 3 years ago • 5 comments

Note: Tabling this until after some broader work, which would be more difficult to carry out once supporting more platforms.

Railway has what looks like a good free trial policy, with no cc required until choosing a paid plan. It does require a GitHub account in order to sign up, but doesn't require a GH repo as an intermediate deployment step. It does have a CLI.

Tasks:

  • [x] Make a new support_railway branch.
  • [ ] Push the sample blog project to Railway without dsd.
  • [ ] Create a deploy_railway.py file in utils/.
  • [ ] Add railway as an optional target in simple_deploy.py.
  • [ ] Add a confirmation that this is in "proof of concept" phase.
  • [ ] Adapt one of the deploy_xx.py scripts to target railway:
    • [ ] Configuration step ___.

ehmatthes avatar May 25 '22 17:05 ehmatthes

Push to Railway without dsd - through project creation

  • Making an account
    • email, verify
  • docs
  • Dashboard > agree TOS
  • Install CLI: curl -fsSL https://railway.app/install.sh | sh
  • railway login
    • Error logging in to CLI. Please try again; note nix railway login
    • CLI output: No dice? Try railway login --browserless
    • Gives an authentication link, with a pairing code
    • CLI login successful
    • railway init
    • Prompts for empty project or template, empty is default.
    • Asks for project name -> blog.
    • Opens browser tab with blog project showing.

ehmatthes avatar May 25 '22 18:05 ehmatthes

Push without dsd -cont

  • Modify project for deployment
    • Add gunicorn, psycopg2, dj-database-url, whitenoise
    • Add Procfile
    • Add runtime.txt
  • Commit changes
  • railway up?
    • Laying tracks in the clouds... lstat Library: no such file or directory

ehmatthes avatar May 25 '22 18:05 ehmatthes

cont

  • Joining discord server
    • Why do you need permission to know what servers I'm in, and join servers for me?
  • Connecting GitHub account
    • Why do you need to "know which resources you can access"? "Act on your behalf?"

ehmatthes avatar May 25 '22 19:05 ehmatthes

Trying to push after rw cli #224 fixed, and I can't create a project with railway init:

  • railway init
    • There was a problem creating the project. -> But, the project appears on my RW web dashboard.
    • railway list -> 'Project not found'
    • railway login -> Error logging in to CLI. Please try again.
    • log out through cli, log in, error, log out dashboard, log in cli, browser login form, login, email confirm, logs in dashboard but cli hangs.
    • [ ] File an issue. Maybe my account is in a weird space because of creating numerous projects on free account, but really non-specific error messages, and half-completed tasks that I requested; ie projects in dashboard but errors in cli. Click on project, 404.

ehmatthes avatar May 27 '22 22:05 ehmatthes

Resuming work 9/2/22

  • I'd like to add Railway support now that Platform.sh development has slowed due to their 2 project per day limitation, and Heroku is about to change.
  • Logging into my dashboard, I still see 4 ghost projects that I created months ago and then destroyed. Clicking on any of these projects shows a 404. railway list shows these same projects.
  • Updated CLI from 1.7.3 to 2.0.10.
  • railway list no longer shows ghost projects, but dashboard still does.

ehmatthes avatar Sep 03 '22 03:09 ehmatthes