mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-10-30 22:09:10 +00:00 
			
		
		
		
	Avoid overwriting DB
This commit is contained in:
		
							parent
							
								
									bf2861853f
								
							
						
					
					
						commit
						8eed4844e8
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -83,6 +83,7 @@ docker run \ | ||||||
|   -e DB_USERNAME=... \ |   -e DB_USERNAME=... \ | ||||||
|   -e DB_PASSWORD=... \ |   -e DB_PASSWORD=... \ | ||||||
|   ghcr.io/m3nu/my-idlers:latest  # TODO: adjust after official image is set up! |   ghcr.io/m3nu/my-idlers:latest  # TODO: adjust after official image is set up! | ||||||
|  | docker exec ... php artisan migrate:fresh --seed --force  # Set up database one time | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## API endpoints | ## API endpoints | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								run.sh
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								run.sh
									
										
									
									
									
								
							|  | @ -16,7 +16,7 @@ DB_PASSWORD=${DB_PASSWORD} | ||||||
| APP_URL=${APP_URL} | APP_URL=${APP_URL} | ||||||
| EOF | EOF | ||||||
| php artisan key:generate --no-interaction --force | php artisan key:generate --no-interaction --force | ||||||
| php artisan migrate:fresh --seed --force |  | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | # php artisan migrate:fresh --seed | ||||||
| php artisan serve --host=0.0.0.0 --port=8000 --env=production | php artisan serve --host=0.0.0.0 --port=8000 --env=production | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue