This commit is contained in:
		
							parent
							
								
									bef7e0a2c7
								
							
						
					
					
						commit
						940d2b7f01
					
				
					 6 changed files with 78 additions and 84 deletions
				
			
		| 
						 | 
				
			
			@ -3,9 +3,8 @@
 | 
			
		|||
version: '3'
 | 
			
		||||
 | 
			
		||||
vars:
 | 
			
		||||
  GREETING: Hello, World!
 | 
			
		||||
  REPO: harbor.hq.rosti.cz/rosti/runtime
 | 
			
		||||
  VERSION: 2023.08-1
 | 
			
		||||
  VERSION: 2023.12-1
 | 
			
		||||
  BASEIMAGE: debian:bookworm
 | 
			
		||||
 | 
			
		||||
tasks:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,3 +18,6 @@ cd ruby-$VERSION
 | 
			
		|||
./configure --prefix=/opt/techs/ruby-$VERSION
 | 
			
		||||
make -j
 | 
			
		||||
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]
 | 
			
		||||
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"
 | 
			
		||||
stopasgroup=true
 | 
			
		||||
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"
 | 
			
		||||
    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
 | 
			
		||||
    supervisorctl reread
 | 
			
		||||
    supervisorctl update
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue