-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetdevfiles
More file actions
executable file
·26 lines (20 loc) · 836 Bytes
/
setdevfiles
File metadata and controls
executable file
·26 lines (20 loc) · 836 Bytes
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
echo '----> copy config file'
cp ../credentials.yml config/
echo '----> set ignore file'
git ls-files --others --exclude-from=.git/info/exclude
#echo '----> copy test data files'
#echo
#echo '/Users/dariomindoro/Dev/lms/gradebook_201x96.json'
#cp /Users/dariomindoro/Dev/lms/gradebook_201x96.json public/javascripts/
echo '----> include sample data file to git exclude file'
grep -q -F 'gradebook_201x96.json' .git/info/exclude
if [ $? -ne 0 ]; then
echo 'gradebook_201x96.json' >> .git/info/exclude
fi
echo '----> ignore inv file'
git update-index --assume-unchanged config/environments/srv_development.rb
echo "Pointing to local file path"
FILE_PATH=config/environments/srv_development.rb
CONTENT_OLD="$FILE_STORAGE = '/storage/'"
CONTENT_NEW="$FILE_STORAGE = 'storage/'"
sed -i '' "s|$CONTENT_OLD|$CONTENT_NEW|" $FILE_PATH