From 2397868a5e8b490484ae8d5bdf6cdd027bae8d25 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Tue, 2 Oct 2018 07:58:15 +0200 Subject: [PATCH] Removed useless directory --- .../00_change_npm_permissions.config | 9 ----- .ebextensions/00_deploy_npm.config | 37 ------------------- 2 files changed, 46 deletions(-) delete mode 100644 .ebextensions/00_change_npm_permissions.config delete mode 100644 .ebextensions/00_deploy_npm.config diff --git a/.ebextensions/00_change_npm_permissions.config b/.ebextensions/00_change_npm_permissions.config deleted file mode 100644 index 7a2434a..0000000 --- a/.ebextensions/00_change_npm_permissions.config +++ /dev/null @@ -1,9 +0,0 @@ -files: - "/opt/elasticbeanstalk/hooks/appdeploy/post/00_set_tmp_permissions.sh": - mode: "000755" - owner: root - group: root - content: | - #!/usr/bin/env bash - chown -R nodejs:nodejs /tmp/.npm /tmp/deployment - chmod -R 777 /tmp/.npm /tmp/deployment diff --git a/.ebextensions/00_deploy_npm.config b/.ebextensions/00_deploy_npm.config deleted file mode 100644 index 901cd2e..0000000 --- a/.ebextensions/00_deploy_npm.config +++ /dev/null @@ -1,37 +0,0 @@ -files: - "/opt/elasticbeanstalk/env.vars" : - mode: "000775" - owner: root - group: users - content: | - export NPM_CONFIG_LOGLEVEL=error - export NODE_PATH=`ls -td /opt/elasticbeanstalk/node-install/node-* | head -1`/bin - "/opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh" : - mode: "000775" - owner: root - group: users - content: | - #!/bin/bash - . /opt/elasticbeanstalk/env.vars - function error_exit - { - eventHelper.py --msg "$1" --severity ERROR - exit $2 - } - - #install not-installed yet app node_modules - if [ ! -d "/var/node_modules" ]; then - mkdir /var/node_modules ; - fi - if [ -d /tmp/deployment/application ]; then - ln -s /var/node_modules /tmp/deployment/application/ - fi - - OUT=$([ -d "/tmp/deployment/application" ] && cd /tmp/deployment/application && $NODE_PATH/npm install 2>&1) || error_exit "Failed to run npm install. $OUT" $? - echo $OUT - "/opt/elasticbeanstalk/hooks/configdeploy/pre/50npm.sh" : - mode: "000666" - owner: root - group: users - content: | - #no need to run npm install during configdeploy