Addded: .env.example, fixed build
This commit is contained in:
		
							
								
								
									
										6
									
								
								api/src/.env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								api/src/.env.example
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
APP_PORT=6060
 | 
			
		||||
APP_HOST=127.0.0.1
 | 
			
		||||
 | 
			
		||||
JWT_SECRET=generate_random_secret
 | 
			
		||||
 | 
			
		||||
DB_URI='mongodb://username:password@localhost:27017/database?authSource=admin'
 | 
			
		||||
							
								
								
									
										6
									
								
								api/src/utils/copy_assets.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								api/src/utils/copy_assets.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
import * as shell from 'shelljs';
 | 
			
		||||
 | 
			
		||||
// Copy all the view templates
 | 
			
		||||
//shell.cp('-R', 'src/views', 'dist/')
 | 
			
		||||
//shell.cp('-R', 'src/public', 'dist/');
 | 
			
		||||
shell.cp('-u', 'src/.env', 'dist/');
 | 
			
		||||
		Reference in New Issue
	
	Block a user