mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
[monorepo] add integration for GitHub Code Spaces (#32722)
* [web] serve site manifest as application/json * [monorepo] bail out early from dev-env-setup when inside devcontainer * [monorepo] move utils for waiting for services into shared bash script * [monorepo] move domain related env-vars into dedicated .env file The .env file will be overridden in GitHub Code Spaces. * [monorepo] remove unused initial_mongo_setup Make target It was previously used for the mongo replica set setup. That setup is a docker init script now. * [monorepo] add flag for silencing docker build output * [monorepo] add integration for GitHub Code Spaces * [web] make prettier happy * [web] restore no use-credentials for manifest outside code spaces * [monorepo] run make install as part of post-start again GitOrigin-RevId: 8c2cc3b969b7e3e8f9c5dac778192c9412cbf4df
This commit is contained in:
@@ -85,7 +85,7 @@ async function deleteUser(email) {
|
||||
await UserDeleter.promises.expireDeletedUser(user._id)
|
||||
}
|
||||
|
||||
async function createProjectWithOldHistoryId(userId) {
|
||||
export async function createProjectWithOldHistoryId(userId) {
|
||||
const projectName = 'old history id'
|
||||
const historyId = parseInt(
|
||||
await HistoryManager.promises.initializeProject(),
|
||||
@@ -137,7 +137,7 @@ async function purgeNewUsers() {
|
||||
)
|
||||
}
|
||||
|
||||
async function provisionSplitTests() {
|
||||
export async function provisionSplitTests() {
|
||||
const backup = Path.join(
|
||||
MONOREPO,
|
||||
'backup',
|
||||
@@ -213,12 +213,7 @@ async function main() {
|
||||
await Promise.all([purgeNewUsers(), provisionUsers(), provisionSplitTests()])
|
||||
}
|
||||
|
||||
await main()
|
||||
await GracefulShutdown.gracefulShutdown(
|
||||
{
|
||||
close(cb) {
|
||||
cb()
|
||||
},
|
||||
},
|
||||
'SIGTERM'
|
||||
)
|
||||
if (import.meta.main) {
|
||||
await main()
|
||||
await GracefulShutdown.gracefulShutdown()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user