Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Railway as Deployment Platform #7319

Closed
wants to merge 2 commits into from
Closed

Conversation

sbmsr
Copy link

@sbmsr sbmsr commented Feb 3, 2022

I was able to deploy to railway for free. Thought it would be useful to add the deploy to railway button.

Note: I have included my referral code in the url. I am perfectly fine with removing it. lmk!

I was able to deploy to railway for free. Thought it would be useful to add the deploy to railway button.

Note: I have included my referral code in the url. I am perfectly fine with removing it. lmk!
@bewest
Copy link
Member

bewest commented Aug 27, 2022

@sbmsr Great idea, thanks! You'll need to create a pull request on the dev branch, which is where we prep all the releases. I have some concerns about the potential quality of service at railway on the free trial. Does paying the $5 secure a reliable experience for Nightscout? nightscout/nightscout.github.io#8

@sulkaharo We'll need to consider a bevvy of buttons and potentially additional template files. We could plan on a nightscout-deployments repo that maintains all deployment templates and button definitions if we don't want them in the core repo? There's interest in digital ocean, fly.io and others as well, not to mention variants with sidecars like tconnectsync.

README.md Outdated
@@ -50,6 +52,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md)
[discord-url]: https://discord.gg/rTKhrqz
[heroku-img]: https://www.herokucdn.com/deploy/button.png
[heroku-url]: https://heroku.com/deploy?template=https://github.com/nightscout/cgm-remote-monitor
[railway-img]: https://railway.app/button.svg
[railway-url]:https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Fnightscout%2Fcgm-remote-monitor&plugins=mongodb&envs=API_SECRET%2CAUTH_DEFAULT_ROLES%2Cenable%2CMONGODB_URI%2CDISPLAY_UNITS&optionalEnvs=MONGODB_URI&API_SECRETDesc=A+passphrase+that+must+be+at+least+12+characters+long.&AUTH_DEFAULT_ROLESDesc=Possible+values+readable%2C+denied%2C+or+any+valid+role+name.+When+readable%2C+anyone+can+view+Nightscout+without+a+token.+Setting+it+to+denied+will+require+a+token+from+every+visit%2C+using+status-only+will+enable+api-secret+based+login.&enableDesc=Plugins+to+enable+for+your+site.+Must+be+a+space-delimited%2C+lower-case+list.&MONGODB_URIDesc=The+connection+string+required+to+access+your+database+%28where+all+your+data+is+stored+in+the+cloud%29.&DISPLAY_UNITSDesc=Preferred+BG+units+for+the+site%3A+mg%2Fdl+or+mmol%2FL+%28or+just+mmol%29.+Setting+to+mmol%2FL+puts+the+entire+server+into+mmol%2FL+mode+by+default%2C+no+further+settings+needed.&AUTH_DEFAULT_ROLESDefault=denied&enableDefault=careportal+basal+dbsize+rawbg+iob+maker+cob+bwp+cage+iage+sage+boluscalc+pushover+treatmentnotify+loop+pump+profile+food+openaps+bage+alexa+override+speech+cors&referralCode=9Y13IY
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

referralCode=9Y13IY ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi - yes, i added my referral code, as mentioned in the initial comment here. I'm perfectly fine with removing it though :)

Removed referral code
@bewest
Copy link
Member

bewest commented Sep 1, 2022

Consider moving buttons like this to the documentation site. We've created an initial stub:
https://github.com/nightscout/nightscout.github.io/tree/source/docs/vendors/railway.app

@asonnera
Copy link

asonnera commented Sep 1, 2022

I was able to deploy to railway for free. Thought it would be useful to add the deploy to railway button.

Note: I have included my referral code in the url. I am perfectly fine with removing it. lmk!

@sbmsr did you try to deploy in a newly created empty GitHub account like most new Nightscout users will try to? From what I've seen the deploy scripts interrupts as it needs verification and leaves you a 200 hours account. When relaunching with a cgm-remote-monitor fork it validates the account and gives 500 hours but still asks you a lot of stuff. Bottom line this button only works once you've setup your Railway account with Github. Can you try and confirm? Note I'm @psonnera and using my son's original account from the time I didn't know how things worked.

@sbmsr
Copy link
Author

sbmsr commented Sep 1, 2022

Consider moving buttons like this to the documentation site. We've created an initial stub: https://github.com/nightscout/nightscout.github.io/tree/source/docs/vendors/railway.app

Hi - thanks for the heads up. So should I make a new pr to nightscout/nightscout.github.io? or should I modify this one to point to dev?

@sbmsr
Copy link
Author

sbmsr commented Sep 1, 2022

I was able to deploy to railway for free. Thought it would be useful to add the deploy to railway button.
Note: I have included my referral code in the url. I am perfectly fine with removing it. lmk!

@sbmsr did you try to deploy in a newly created empty GitHub account like most new Nightscout users will try to? From what I've seen the deploy scripts interrupts as it needs verification and leaves you a 200 hours account. When relaunching with a cgm-remote-monitor fork it validates the account and gives 500 hours but still asks you a lot of stuff. Bottom line this button only works once you've setup your Railway account with Github. Can you try and confirm? Note I'm @psonnera and using my son's original account from the time I didn't know how things worked.

It looks like they've updated their template format, so I'm going to have to generate a new link and test it out. I'll try this out with a fresh account tomorrow and get back to you.

@bewest
Copy link
Member

bewest commented Sep 1, 2022

Yes, please use https://github.com/nightscout/nightscout.github.io for work on this going forward.

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.

None yet

4 participants