mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	split up command
This commit is contained in:
		
							
								
								
									
										11
									
								
								.gitpod.yml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								.gitpod.yml
									
									
									
									
									
								
							| @@ -1,14 +1,19 @@ | |||||||
| # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ | # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ | ||||||
| tasks: | tasks: | ||||||
|   - init: | |  - name: Setup django | ||||||
|       export PIP_USER=no |    command: | | ||||||
|       python3 -m venv venv |       python3 -m venv venv | ||||||
|       source venv/bin/activate |       source venv/bin/activate | ||||||
|       pip install invoke |       pip install invoke | ||||||
|  |       inv install | ||||||
|  |    env: | ||||||
|  |       PIP_USER: 'no' | ||||||
|  |  - name: Start server | ||||||
|  |    command: | | ||||||
|       inv update |       inv update | ||||||
|       echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'test@test.com', 'inventree')" | python InvenTree/manage.py shell |       echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'test@test.com', 'inventree')" | python InvenTree/manage.py shell | ||||||
|       inv server |       inv server | ||||||
|     env: |    env: | ||||||
|       INVENTREE_DB_ENGINE: 'sqlite3' |       INVENTREE_DB_ENGINE: 'sqlite3' | ||||||
|       INVENTREE_DB_NAME: '/workspace/data/database.sqlite3' |       INVENTREE_DB_NAME: '/workspace/data/database.sqlite3' | ||||||
|       INVENTREE_MEDIA_ROOT: '/workspace/data/media' |       INVENTREE_MEDIA_ROOT: '/workspace/data/media' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user