mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Создание runtime папок вынесено в bootstrap.sh
This commit is contained in:
		@@ -43,10 +43,8 @@ RUN rm -rf /root/.ssh
 | 
			
		||||
# Наконец переносим все сорцы внутрь контейнера
 | 
			
		||||
COPY . /var/www/html
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p api/runtime api/web/assets console/runtime \
 | 
			
		||||
 && chown www-data:www-data api/runtime api/web/assets console/runtime \
 | 
			
		||||
 # Билдим фронт
 | 
			
		||||
 && cd frontend \
 | 
			
		||||
# Билдим фронт
 | 
			
		||||
RUN cd frontend \
 | 
			
		||||
 && ln -s /var/www/frontend/node_modules $PWD/node_modules \
 | 
			
		||||
 && npm run build:quiet \
 | 
			
		||||
 && rm node_modules \
 | 
			
		||||
 
 | 
			
		||||
@@ -40,10 +40,8 @@ RUN cd ../frontend \
 | 
			
		||||
# Наконец переносим все сорцы внутрь контейнера
 | 
			
		||||
COPY . /var/www/html
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p api/runtime api/web/assets console/runtime \
 | 
			
		||||
 && chown www-data:www-data api/runtime api/web/assets console/runtime \
 | 
			
		||||
 # Билдим фронт
 | 
			
		||||
 && cd frontend \
 | 
			
		||||
# Билдим фронт
 | 
			
		||||
RUN cd frontend \
 | 
			
		||||
 && ln -s /var/www/frontend/node_modules $PWD/node_modules \
 | 
			
		||||
 && npm run build:quiet \
 | 
			
		||||
 && rm node_modules \
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,8 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
mkdir -p api/runtime api/web/assets console/runtime
 | 
			
		||||
chown www-data:www-data api/runtime api/web/assets console/runtime
 | 
			
		||||
 | 
			
		||||
if [ "$YII_ENV" = "test" ]
 | 
			
		||||
then
 | 
			
		||||
    YII_EXEC="/var/www/html/tests/codeception/bin/yii"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user