ojoaoguilherme
ojoaoguilherme
Explore posts from servers
RRailway
Created by ojoaoguilherme on 9/18/2023 in #✋|help
Is it possible to host Unity project?
I’ll definitely let you know if I have any problems on that, thanks for the help 🙂
21 replies
RRailway
Created by ojoaoguilherme on 9/18/2023 in #✋|help
Is it possible to host Unity project?
I see, thanks for the suggestion
21 replies
RRailway
Created by ojoaoguilherme on 9/18/2023 in #✋|help
Is it possible to host Unity project?
thanks gonna have a look
21 replies
RRailway
Created by ojoaoguilherme on 9/18/2023 in #✋|help
Is it possible to host Unity project?
so yes, it runs on the web but not just deploy the unity... I think their would need a workflow to work with railway
21 replies
RRailway
Created by ojoaoguilherme on 9/18/2023 in #✋|help
Is it possible to host Unity project?
Technically, some providers access the unity project and compiles into webGL than its hosted as html and everything that is needed to work
21 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
it worked thanksss
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
gonna push to see i it works
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
ok got it
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
or this
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
No description
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
No description
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
No description
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
how can I see railway node version?
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
No description
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
I am also receiving the data in the controller here as formdata from my nextjs application, maybe it helps you out...
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
on the <my other endpoint> its https://<domain>/<endpoint>
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
yes
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
this is the peace of code that is working on localhost and throwing on railway
@Post(":id")
@UseGuards(JwtAuthGuard)
@UseInterceptors(FilesInterceptor("files"))
async updateLand(
@Param("id") land: string,
@Res() res: Response,
@Body() body: LandUpdateType,
//@UploadedFiles() files: Express.Multer.File[],
//@Req() req: Request,
) {

const { name, description, tokenId, buildingModelId } = body;
console.log(
"Receiving data",
name,
description,
tokenId,
buildingModelId,
); // this is loging on localhost and railway logs

const formData = new FormData();
formData.append("Name", name);
formData.append("Description", description);
formData.append("TokenID", tokenId);
formData.append("BuildingModelID", buildingModelId);

const { data, status } = await axios.post(
<My other endpoint>,
formData,
);
if (status === HttpStatus.OK) {
res.status(status).end();
} else {
res.status(status).json(data);
}
} catch (error) {
console.log(error);
res.status(HttpStatus.BAD_REQUEST).send(error);
}
}
@Post(":id")
@UseGuards(JwtAuthGuard)
@UseInterceptors(FilesInterceptor("files"))
async updateLand(
@Param("id") land: string,
@Res() res: Response,
@Body() body: LandUpdateType,
//@UploadedFiles() files: Express.Multer.File[],
//@Req() req: Request,
) {

const { name, description, tokenId, buildingModelId } = body;
console.log(
"Receiving data",
name,
description,
tokenId,
buildingModelId,
); // this is loging on localhost and railway logs

const formData = new FormData();
formData.append("Name", name);
formData.append("Description", description);
formData.append("TokenID", tokenId);
formData.append("BuildingModelID", buildingModelId);

const { data, status } = await axios.post(
<My other endpoint>,
formData,
);
if (status === HttpStatus.OK) {
res.status(status).end();
} else {
res.status(status).json(data);
}
} catch (error) {
console.log(error);
res.status(HttpStatus.BAD_REQUEST).send(error);
}
}
24 replies
RRailway
Created by ojoaoguilherme on 9/13/2023 in #✋|help
ReferenceError: FormData is not defined in Production
1862ff4f-3f51-4d9c-a0c3-26d926471f99
24 replies
RRailway
Created by ojoaoguilherme on 8/23/2023 in #✋|help
I need help on deploying my development database to production without losing any data
its ok to loose data that I intend but not resetting the database
19 replies