forked from actionhero/actionhero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.sh
executable file
·26 lines (20 loc) · 851 Bytes
/
sample.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
#!/bin/bash
# I am used to generate a "client" application using this master branch of actionhero.
# Use me for testing things like the generator
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEFAULT_DESTINATION="$HOME/Desktop/actionhero_tmp"
DESTINATION=${1:-$DEFAULT_DESTINATION}
echo "Creating a sample actionhero app @ $DESTINATION from $CURRENT_PATH"
rm -rf $DESTINATION
sleep 1
mkdir $DESTINATION
# cd $DESTINATION && mkdir 'node_modules'
# cd $DESTINATION/node_modules && mkdir '.bin'
# cd $DESTINATION/node_modules && ln -s $CURRENT_PATH actionhero
# cd $DESTINATION/node_modules/.bin && ln -s ../actionhero/bin/actionhero actionhero
cd $DESTINATION && npm install actionhero
cd $DESTINATION && node_modules/.bin/actionhero generate
cd $DESTINATION && npm install
echo ""
echo "***************"
echo "cd $DESTINATION"