klitchevo
Explore posts from serversUpdate php.ini when using Wordpress image
As title says, I need to update php.ini to these values:
RUN echo "upload_max_filesize = 128M" >> /usr/local/etc/php/php.ini
RUN echo "post_max_size = 128M" >> /usr/local/etc/php/php.ini
RUN echo "max_execution_time = 300" >> /usr/local/etc/php/php.ini
RUN echo "max_input_time = 300" >> /usr/local/etc/php/php.ini
How can I do this? I am using wordpress image, I do not have any code on local machine
6 replies
Nginx won't redirect to index.html
I have a react project that I am deploying to railway. When I access its root route, it works fine, but whenever I try to go to for example
/profile
and refresh page I get 404. Here is my nginx config
and here is my Dockerfile:
any ideas? Also is it worth exploring caddy for this use case maybe?20 replies
Issue creating server - v11
I have nest.js app and I am running tRPC inside of it, however when I want to instantiate router I get typescript errors:
private readonly trpc = initTRPC.context<ContextType>().create();
middleware = this.trpc.middleware;
procedure = this.trpc.procedure;
router = this.trpc.router;
In my other file I have
appRouter = this.trpc.router({
hello: this.trpc.procedure.query(() => {
return { message: "Hello, World!" };
}),
});
also
app.use(
/trpc,
trpcExpress.createExpressMiddleware({
router: this.appRouter,
}),
);
I get error like this:
TS2322: Type
CreateRouterInner<RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>, { ...; }>
is not assignable to type AnyRouter
Types of property _def are incompatible.
Type 'RouterDef<RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>, { ...; }, { ...; }>' is not assignable to type 'AnyRouterDef<AnyRootConfig, any>'.
Type 'RootConfig<{ ctx: { authenticated: boolean; req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>; res: Response<any, Record<string, any>>; }; meta: object; errorShape: never; transformer: DataTransformerOptions; }>' is not assignable to type 'AnyRootConfig'.
Type any is not assignable to type never
Any ideas? Thanks in advance!2 replies