-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? 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
Cannot update .env #495
Comments
Looking into this. Seems SFTP errors are being ignored (they don't throw exceptions by default) and the following error is being reported: NET_SFTP_STATUS_PERMISSION_DENIED: Permission denied The vito user does have access to the folder using groups, however, looks like SFTP is doing something special and ignoring group membership, and given it's not root, rejecting the transfer. However, for security, the .env file needs to be owned by the isolated user, not vito, so we will need to find another way to get the file content onto the server. Worth noting - editFile won't work for any isolated site. |
It doesn't work for non-isolated sites, either. |
@buddhaCode could be a permission issue. maybe you can share the currently with the latest version I can update the |
No, still can't see a textarea control, when I open the "update .env" action. Here is the output.
There even is no .env file. I created one manually via the web console. But still no textarea control and no content when I open the update env action. |
@buddhaCode are you running Vito over SSL through a reverse proxy? If so, I've seen this before, and some additional configuration steps are required to ensure resources render correctly. If the above is true, you can following the steps here: https://vitodeploy.com/getting-started/securing.html#update-environment-variables Essentially, it's adding the two following environment variables:
|
Describe the bug
.env is not being updated when the site is isolated.
To Reproduce
The text was updated successfully, but these errors were encountered: