django-simple-deploy
django-simple-deploy copied to clipboard
Support Railway
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.
- See tweet 5/25 that inspired this attempt.
Tasks:
- [x] Make a new
support_railwaybranch. - [ ] Push the sample blog project to Railway without dsd.
- [ ] Create a deploy_railway.py file in utils/.
- [ ] Add
railwayas 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 ___.
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.
- Error logging in to CLI. Please try again; note
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
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?"
Trying to push after rw cli #224 fixed, and I can't create a project with railway init:
railway initThere 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.
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 listshows these same projects. - Updated CLI from 1.7.3 to 2.0.10.
railway listno longer shows ghost projects, but dashboard still does.