-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path00npm.config
34 lines (30 loc) · 1.46 KB
/
00npm.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh" :
mode: "000775"
owner: root
group: root
content: |
#!/bin/bash
#==============================================================================
# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at
#
# http://aws.amazon.com/asl/
#
# or in the "license" file accompanying this file. This file is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or
# implied. See the License for the specific language governing permissions
# and limitations under the License.
#==============================================================================
export HOME=/home/ec2-user
export USERPROFILE=/home/ec2-user
sudo rm -rf /tmp/deployment/application/node_modules/bcrypt
sudo rm -rf /tmp/deployment/application/node_modules/fsevents
sudo rm -rf /tmp/deployment/application/node_modules/pm2/node_modules/chokidar/node_modules/fsevents
sudo rm -rf /tmp/deployment/application/node_modules/phantomjs-prebuilt
sudo rm -rf /tmp/deployment/application/node_modules/iltorb
set -xe
/opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install