8000 Is there a way to set the PROJ_DIR during installation? · Issue #18 · torenware/ddev-viteserve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Is there a way to set the PROJ_DIR during installation? #18

New issue

Have a question about this project?< 9FC5 /strong> Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bd-viget opened this issue May 2, 2023 · 1 comment
Open

Is there a way to set the PROJ_DIR during installation? #18

bd-viget opened this issue May 2, 2023 · 1 comment

Comments

@bd-viget
Copy link
bd-viget commented May 2, 2023

When installing ddev-viteserv, the .ddev/.env file is always created with VITE_PROJECT_DIR=frontend. Is it possible to pass an argument or run a command to change this to something else? Thanks!

@torenware
Copy link
Owner

I don't know if you can set this before installation, but once you've installed the plugin with

ddev get torenware/ddev-viteserve

the main config file for the plugin, .ddev/.env will be set up, and you can edit it. In your case, you want to change VITE_PROJECT_DIR=frontend to VITE_PROJECT_DIR=.. Then do

ddev restart
ddev vite-serve start

and start working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0