Page:
Deploy a Service on Gram
Pages
2016 Ketter133A
2018 JITD Testbed Sketch
Annotation Provenance
Conferences
DB Seminar 2021
Datasets
Deploy a Service on Gram
FacilitiesStatement
GraphingTools
Hardware
Home
Latex Tricks
LibraryGatewayHack
Machine Dumbo
Machine Gungnir
Machine Mjolnir
Machine Norn
NewStudentInformation
OSM Tiles
Pandas
ReadingList Approximate QPs
ReadingList Databases
ReadingList EmbeddedDBs
ReadingList Probabilistic DBs
ReadingList Quality
ReadingList SelfServe
Reading_Group 2015
Reading_Group 2016
Reading_Group 2017
Readinglist CSEd
Readinglist Graphical Visualization
Readinglist SIGCHI
Resources-Graphical-Design
Restaurants
ReviewWriting
Setup Hardware Mac
Travel Guidelines
Travel
Units
Visualizations
house climate dataset
pdfa files
unpackmetatile.pl
5
Deploy a Service on Gram
Oliver Kennedy edited this page 2021-01-13 22:15:44 -05:00
Table of Contents
- Get access to Gram via CSE-Consult (Talk to Oliver)
- Select an unused port number to use for your service and tell Oliver.
- This can be be any number 3000 or higher, excluding the following:
- 3050: Morph
- 4000: DubStep
- 5432: Postgresql
- 8008: Matrix
- 8080: GitLab
- 8434: Slack
- Examples for how to set the port:
flask run --port [port number]
- This can be be any number 3000 or higher, excluding the following:
- Select a domain name for the service: Typically these are
[servicename].odin.cse.buffalo.edu
. Ask CSE-Consult to CNAME your chosen domain name togram.cse.buffalo.edu
. Make sure to cc Oliver on the email. Wait patiently until CSE-Consult deploys the rule (typically 1-2 business days). - Wait patiently until Oliver installs the nginx rule for your service.
- Try running your service from the command line. You should be able to connect to it via
https://[servicename].odin.cse.buffalo.edu
(yes, that's https, and no, don't include a your chosen port)
Best Practices
- Do not bind your service to
0.0.0.0
(this parameter is sometimes called the host when setting up a server). Use eitherlocalhost
or127.0.0.1:[port]
(this is the default for most standalone server app development tools like flask). Binding to0.0.0.0
makes it possible to directly access your server from the internet, which is a bad idea for a number of reasons.