Corfitz
Corfitz
RRailway
Created by Corfitz on 10/1/2023 in #✋|help
Bad port: "6566" is reserved for sane-port
I figured a redeploy would work - but since it is a known reserved port for Next.js applications, maybe it could be filtered from the automatically generated port during build/deployment?
7 replies
RRailway
Created by Corfitz on 10/1/2023 in #✋|help
Bad port: "6566" is reserved for sane-port
497a7953-e85b-4044-b984-112dc9defad9
7 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
That would seem to be the culprit. Thank you.
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
Aye,... I'll try that.
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
What confuses me is that the KEY is being created - but the value is empty. If I Write an actual string in the env variable instead of the railway reference, the value appears.
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
The only "difference" would be that it is deployed from a turbo repo
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
no..
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
No description
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
Hmm.. you are right.. Seems to be working now... My bad.
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
Yes - But it gave me the option to use a variable from a sibling service. I am trying to use the RAILWAY_PUBLIC_DOMAIN assigned to service A as a variable in service B
20 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Files on mounted volume not available after redeploy
And in the Media config file:
import volumePath from "../utilities/volumePath";

const Media: CollectionConfig = {
slug: "media",
access: {
// Payload's access control functions apply to files also, meaning you can permit or deny file downloads easily
read: () => true,
create: () => true,
update: () => true,
delete: () => true,
},
admin: {
useAsTitle: "filename",
description: "upload media",
group: "Content",
},
upload: {
adminThumbnail: "thumbnail",
imageSizes: [
{
name: "thumbnail",
width: 150,
},
{
name: "normal",
width: 820,
},
{
name: "wide",
width: 1400,
},
{
name: "fullscreen",
width: 1920,
},
],
staticDir: volumePath("media"),
},
fields: [
{
name: "alt",
label: "Alt Text",
type: "text",
required: true,
},
],
};

export default Media;
import volumePath from "../utilities/volumePath";

const Media: CollectionConfig = {
slug: "media",
access: {
// Payload's access control functions apply to files also, meaning you can permit or deny file downloads easily
read: () => true,
create: () => true,
update: () => true,
delete: () => true,
},
admin: {
useAsTitle: "filename",
description: "upload media",
group: "Content",
},
upload: {
adminThumbnail: "thumbnail",
imageSizes: [
{
name: "thumbnail",
width: 150,
},
{
name: "normal",
width: 820,
},
{
name: "wide",
width: 1400,
},
{
name: "fullscreen",
width: 1920,
},
],
staticDir: volumePath("media"),
},
fields: [
{
name: "alt",
label: "Alt Text",
type: "text",
required: true,
},
],
};

export default Media;
10 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Files on mounted volume not available after redeploy
This is my solution:
import path from "path";
const dev = process.env.NODE_ENV !== "production";

export default function volumePath(directory: string) {
const prodPath = process.env.VOLUME_PATH || `/home/node/app/uploads`;
return dev
? path.resolve(__dirname, `../../uploads/${directory}`)
: path.resolve(prodPath, directory);
}
import path from "path";
const dev = process.env.NODE_ENV !== "production";

export default function volumePath(directory: string) {
const prodPath = process.env.VOLUME_PATH || `/home/node/app/uploads`;
return dev
? path.resolve(__dirname, `../../uploads/${directory}`)
: path.resolve(prodPath, directory);
}
10 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Files on mounted volume not available after redeploy
No description
10 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Files on mounted volume not available after redeploy
5e42a962-c3b7-4238-926e-ffa87df21892
10 replies
RRailway
Created by Corfitz on 9/15/2023 in #✋|help
Referenced variables are empty
497a7953-e85b-4044-b984-112dc9defad9
20 replies
RRailway
Created by Corfitz on 9/11/2023 in #✋|help
Can't create an account: Device requesting login is not supported. Please try again from a secure co
Turns out - this is only in Chrome.. Apparently it works in safari.. 🤷‍♂️
6 replies
RRailway
Created by Corfitz on 9/11/2023 in #✋|help
Can't create an account: Device requesting login is not supported. Please try again from a secure co
No description
6 replies