-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetUpTigers.template.sh
executable file
·62 lines (51 loc) · 1.92 KB
/
setUpTigers.template.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
echo "****🐯🐅 The Set Up Tigers 🐅🐯****"
echo "👾👾👾👾👾👾👾👾👾👾"
echo "🐯🐅🐯🐅🐯🐅"
echo "👾👾👾👾👾👾👾👾👾👾"
######################################################
######################################################
# These values need to be customized for your computer and remote Linux server
######
mode="staging" # OR "production"
pemPath="/Users/user-name/user-files/super-secret-path/linux-server-access-file.pem"
sourceRepoPath="/Users/user-name/my-code-folder/bitcoin-api-full-stack"
destinationUserName="ec2-user"
destinationUrl="ec2-instance-name.ec2-instance-region.compute.amazonaws.com"
destinationHomePath="/home/ec2-user"
######################################################
######################################################
### The code below is taken care of by Bitcoin-Api😁✌🕊💕🏛 ###
sourcePath="${sourceRepoPath}/1-backend"
destinationPath="${destinationHomePath}/tigerScript"
addressGeneratorPath="${sourcePath}/addressGenerator"
commonUtilitiesPath="${sourcePath}/commonUtilities"
feeDataBotPath="${sourcePath}/feeDataBot"
withdrawsBotPath="${sourcePath}/withdrawsBot"
credentialsPath="${sourcePath}/${mode}Credentials"
depositsBotPath="${sourcePath}/depositsBot"
for tigerPath in \
$addressGeneratorPath \
$commonUtilitiesPath \
$feeDataBotPath \
$withdrawsBotPath \
$depositsBotPath
do
pushd $tigerPath
rm -rf ./node_modules
popd
done
scp \
-i $pemPath \
-r \
$addressGeneratorPath \
$commonUtilitiesPath \
$feeDataBotPath \
$withdrawsBotPath \
$credentialsPath \
$depositsBotPath \
"${destinationUserName}@${destinationUrl}:${destinationPath}"
echo "👾👾👾👾👾👾👾👾👾👾"
echo "🐯🐅🐯🐅🐯🐅"
echo "👾👾👾👾👾👾👾👾👾👾"
echo "****🐯🐅 The Set Up Tigers Set Up the Necessary Circumstances 🐅🐯****"