Skip to content

Commit 23086e2

Browse files
authored
Merge pull request #165 from mekanix/scripts
Cleanup scripts
2 parents c728594 + b353580 commit 23086e2

File tree

5 files changed

+1
-14
lines changed

5 files changed

+1
-14
lines changed

freenit/project/bin/build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#!/bin/sh
22

33
BIN_DIR=`dirname $0`
4-
PROJECT_DIR="${BIN_DIR}"
54
export FREENIT_ENV="build"
65
. ${BIN_DIR}/common.sh
76

8-
97
setup
10-
pip install hatchling
11-
128

139
rm -rf *.egg-info build dist
1410
find . -name '*.pyc' -exec rm -rf {} \;

freenit/project/bin/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ setup() {
3333
mkdir alembic/versions
3434
alembic revision --autogenerate -m initial
3535
fi
36-
alembic upgrade head
36+
python migrate.py
3737
}

freenit/project/bin/devel.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
BIN_DIR=`dirname $0`
44
export FREENIT_ENV="dev"
5-
export OFFLINE=${OFFLINE:="no"}
6-
75

86
. ${BIN_DIR}/common.sh
97
setup

freenit/project/bin/init.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22

3-
export OFFLINE=${OFFLINE:="no"}
43
BIN_DIR=`dirname $0`
54
. ${BIN_DIR}/common.sh
65

7-
86
setup

freenit/project/bin/shell.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#!/bin/sh
22

33
BIN_DIR=`dirname $0`
4-
export FREENIT_ENV=${FREENIT_ENV:="dev"}
5-
export OFFLINE=${OFFLINE:="no"}
6-
74

85
. ${BIN_DIR}/common.sh
96
setup
107

11-
echo "Backend"
12-
echo "==============="
138
env PYTHONPATH=${PWD}/.. ipython

0 commit comments

Comments
 (0)