mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-19 22:19:55 +00:00
feat: Add Server Version management with GitHub integration
- Add Server Version tab in settings - Add githubRepoUrl field to Settings model - Add database migration for github_repo_url - Update settings API to handle GitHub repo URL - Add version checking UI with current/latest version display - Default GitHub repo: git@github.com:9technologygroup/patchmon.net.git
This commit is contained in:
@@ -70,9 +70,8 @@ async function setupAdminUser() {
|
||||
data: {
|
||||
username: username.trim(),
|
||||
email: email.trim(),
|
||||
passwordHash,
|
||||
role: 'admin',
|
||||
isActive: true
|
||||
passwordHash: passwordHash,
|
||||
role: 'admin'
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
@@ -92,9 +91,10 @@ async function setupAdminUser() {
|
||||
|
||||
console.log('\n🎉 Setup complete!');
|
||||
console.log('\nNext steps:');
|
||||
console.log('1. Start the backend server: cd backend && npm start');
|
||||
console.log('2. Start the frontend: cd frontend && npm run dev');
|
||||
console.log('3. Visit http://localhost:3000 and login with your credentials');
|
||||
console.log('1. The backend server is already running as a systemd service');
|
||||
console.log('2. The frontend is already built and served by Nginx');
|
||||
console.log('3. Visit https://' + process.env.FQDN + ' and login with your credentials');
|
||||
console.log('4. Use the management script: ./manage.sh {status|restart|logs|update|backup|credentials|reset-admin}');
|
||||
|
||||
} catch (error) {
|
||||
console.error('❌ Error setting up admin user:', error);
|
||||
|
||||
Reference in New Issue
Block a user