Skip to content

qoohoo-app/orion-expo-updates-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expo update server for orion

Initial Setup Instructions - DB

  1. Setup infisical secrets and link to fly project.
  2. Follow the instructions in dockerfile and enable initial setup command while commenting out the one mentioned below it.
  3. Deploy on fly using fly deploy -c fly.[environment].toml
  4. SSH into the machine using fly ssh console -c fly.[environment].toml
  5. Run the following commands
    mongosh
    
    use admin
    
    db.createUser({ user: "<username>", pwd: "<password>", roles: [{ role: "userAdminAnyDatabase", db: "admin"}, "readWriteAnyDatabase" ]})
    
    exit
    exit
    
  6. Comment out the initial setup instructions from dockerfile and restore the other line.
  7. Deploy again on fly using
    fly deploy -c=fly.[environment].toml --no-cache
    
  8. Your connection string to use now is:
    mongodb://<username>:<password>@<host>:27017/?directConnection=true&serverSelectionTimeoutMS=2000&authSource=admin&appName=mongosh+2.3.0
    

About

Expo-updates compliant server for OTA updates for orion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.5%
  • HTML 12.5%
  • Dockerfile 1.9%
  • CSS 0.1%