kopia lustrzana https://github.com/piku/piku
				
				
				
			Change app detection order to avoid Rails apps using webpacker are detected as nodejs apps first (mostly Rails 6.0)
							rodzic
							
								
									547d3b3dae
								
							
						
					
					
						commit
						610921280c
					
				
							
								
								
									
										4
									
								
								piku.py
								
								
								
								
							
							
						
						
									
										4
									
								
								piku.py
								
								
								
								
							|  | @ -359,6 +359,8 @@ def do_deploy(app, deltas={}, newrev=None): | |||
|             settings = {} | ||||
|             if exists(join(app_path, 'requirements.txt')) and found_app("Python"): | ||||
|                 settings.update(deploy_python(app, deltas)) | ||||
|             elif exists(join(app_path, 'Gemfile')) and found_app("Ruby Application") and check_requirements(['ruby', 'gem', 'bundle']): | ||||
|                 settings.update(deploy_ruby(app, deltas)) | ||||
|             elif exists(join(app_path, 'package.json')) and found_app("Node") and ( | ||||
|                     check_requirements(['nodejs', 'npm']) or check_requirements(['node', 'npm']) or check_requirements(['nodeenv'])): | ||||
|                 settings.update(deploy_node(app, deltas)) | ||||
|  | @ -370,8 +372,6 @@ def do_deploy(app, deltas={}, newrev=None): | |||
|                 settings.update(deploy_go(app, deltas)) | ||||
|             elif exists(join(app_path, 'project.clj')) and found_app("Clojure Lein") and check_requirements(['java', 'lein']): | ||||
|                 settings.update(deploy_clojure(app, deltas)) | ||||
|             elif exists(join(app_path, 'Gemfile')) and found_app("Ruby Application") and check_requirements(['ruby', 'gem', 'bundle']): | ||||
|                 settings.update(deploy_ruby(app, deltas)) | ||||
|             elif 'release' in workers and 'web' in workers: | ||||
|                 echo("-----> Generic app detected.", fg='green') | ||||
|                 settings.update(deploy_identity(app, deltas)) | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 mlainez
						mlainez