- Setup infisical secrets and link to fly project.
- Follow the instructions in dockerfile and enable initial setup command while commenting out the one mentioned below it.
- Deploy on fly using
fly deploy -c fly.[environment].toml - SSH into the machine using
fly ssh console -c fly.[environment].toml - Run the following commands
mongosh use admin db.createUser({ user: "<username>", pwd: "<password>", roles: [{ role: "userAdminAnyDatabase", db: "admin"}, "readWriteAnyDatabase" ]}) exit exit - Comment out the initial setup instructions from dockerfile and restore the other line.
- Deploy again on fly using
fly deploy -c=fly.[environment].toml --no-cache - Your connection string to use now is:
mongodb://<username>:<password>@<fly-app-name>.internal:27017/?directConnection=true&serverSelectionTimeoutMS=2000&authSource=admin&appName=mongosh+2.3.0
qoohoo-app/orion-expo-updates-server
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Releases
No releases published
Languages
- JavaScript 85.5%
- HTML 12.5%
- Dockerfile 1.9%
- CSS 0.1%