This commit is contained in:
		
							parent
							
								
									bef7e0a2c7
								
							
						
					
					
						commit
						940d2b7f01
					
				
					 6 changed files with 78 additions and 84 deletions
				
			
		| 
						 | 
					@ -3,9 +3,8 @@
 | 
				
			||||||
version: '3'
 | 
					version: '3'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
vars:
 | 
					vars:
 | 
				
			||||||
  GREETING: Hello, World!
 | 
					 | 
				
			||||||
  REPO: harbor.hq.rosti.cz/rosti/runtime
 | 
					  REPO: harbor.hq.rosti.cz/rosti/runtime
 | 
				
			||||||
  VERSION: 2023.08-1
 | 
					  VERSION: 2023.12-1
 | 
				
			||||||
  BASEIMAGE: debian:bookworm
 | 
					  BASEIMAGE: debian:bookworm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
tasks:
 | 
					tasks:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,3 +18,6 @@ cd ruby-$VERSION
 | 
				
			||||||
./configure --prefix=/opt/techs/ruby-$VERSION
 | 
					./configure --prefix=/opt/techs/ruby-$VERSION
 | 
				
			||||||
make -j
 | 
					make -j
 | 
				
			||||||
make install
 | 
					make install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/opt/techs/ruby-${VERSION}/bin/gem update --system
 | 
				
			||||||
 | 
					/opt/techs/ruby-${VERSION}/bin/gem install passenger
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										65
									
								
								examples/ruby/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								examples/ruby/index.html
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
[program:app]
 | 
					[program:app]
 | 
				
			||||||
command=/srv/bin/primary_tech/ruby app.rb
 | 
					command=passenger start --port 8000 --log-file /dev/stdout --pid-file /srv/run/passenger.pid
 | 
				
			||||||
environment=PATH="/srv/bin/primary_tech:/usr/local/bin:/usr/bin:/bin:/srv/.npm-packages/bin"
 | 
					environment=PATH="/srv/bin/primary_tech:/usr/local/bin:/usr/bin:/bin:/srv/.npm-packages/bin"
 | 
				
			||||||
stopasgroup=true
 | 
					stopasgroup=true
 | 
				
			||||||
directory=/srv/app
 | 
					directory=/srv/app
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -110,6 +110,14 @@ function setTech() {
 | 
				
			||||||
        echo ".. app configuration for nginx not found, adding it - please check /srv/conf/nginx.d/app.conf and make sure it fits your code"
 | 
					        echo ".. app configuration for nginx not found, adding it - please check /srv/conf/nginx.d/app.conf and make sure it fits your code"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if [ "$name" = "ruby" ]; then
 | 
				
			||||||
 | 
					        mkdir -p /srv/app/public
 | 
				
			||||||
 | 
					        rm /srv/conf/nginx.d/app.conf
 | 
				
			||||||
 | 
					        mv /srv/app/index.html /srv/app/public/index.html
 | 
				
			||||||
 | 
					        rm -rf /srv/conf/nginx.d
 | 
				
			||||||
 | 
					        rm -f /srv/conf/supervisor.d/nginx.conf
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # We load new configuration into supervisor and it's automatically started or restarted if needed
 | 
					    # We load new configuration into supervisor and it's automatically started or restarted if needed
 | 
				
			||||||
    supervisorctl reread
 | 
					    supervisorctl reread
 | 
				
			||||||
    supervisorctl update
 | 
					    supervisorctl update
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue