Unable to Launch Vendure Project on Railway with Admin UI Extensions #2875
-
Hello Vendure Community, I am facing an issue while trying to launch my Vendure project in a testing environment on Railway. Here are the steps I followed:
AdminUiPlugin.init({
route: "admin",
port: 3002,
app: compileUiExtensions({
outputPath: path.join(__dirname, '../admin-ui'),
extensions: [{
translations: {
nl: path.join(__dirname, '../src/translations/nl.json'),
}
}],
}),
adminUiConfig:{
defaultLanguage: LanguageCode.nl,
availableLanguages: [LanguageCode.nl, LanguageCode.nl],
}
}),
However, when I check the logs, I get the following error:
Despite the application running, I am unable to open the admin interface or use the api's Additional Information:
Could anyone please help me resolve this issue? I am unsure why the Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm guessing that Railway might have the In general, I'd recommend you look into compiling the admin ui as a deploy step. The reason is that with your current configuration, the custom admin ui app will get compiled every time the Vendure server is started. Not only does it use quite a lot of RAM (about 2GB), but it is also pretty slow. Best to do it once up-front. |
Beta Was this translation helpful? Give feedback.
I'm guessing that Railway might have the
NODE_ENV
env var set toproduction
which would then prevent devDependencies from getting installed.In general, I'd recommend you look into compiling the admin ui as a deploy step. The reason is that with your current configuration, the custom admin ui app will get compiled every time the Vendure server is started. Not only does it use quite a lot of RAM (about 2GB), but it is also pretty slow. Best to do it once up-front.