PhongPham b146127513 feat: Update deployment script to support root user execution
- Modified vps-deploy.sh to run as both root and non-root user
- Added dynamic sudo command handling (SUDO_CMD variable)
- Set appropriate service user (www-data for root, current user for non-root)
- Updated all system commands to use dynamic sudo
- Enhanced PostgreSQL setup for root execution
- Updated PM2 configuration with proper user permissions
- Added deployment update script with root support
- Improved security and flexibility for VPS deployment
2025-08-12 07:39:58 +07:00
Description
No description provided
51 MiB
Languages
HTML 51.1%
TypeScript 41%
Shell 5.8%
CSS 1.2%
JavaScript 0.8%
Other 0.1%