0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-09 06:11:23 -05:00

📎 Minor fixes.

This commit is contained in:
Andrey Antukh 2019-11-22 18:09:13 +01:00
parent 8809c5238f
commit f6db00a444
2 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@
;; --- Migrations
(def migrations
(def +migrations+
{:name "uxbox-main"
:steps
[{:desc "Initial triggers and utils."
@ -50,7 +50,7 @@
(defn migrate
[]
(with-open [ctx (mg/context db/pool)]
@(mg/migrate ctx migrations)))
@(mg/migrate ctx +migrations+)))
(defstate migrations
:start (migrate))

View file

@ -13,7 +13,7 @@ function build-devenv {
echo "Building development image $IMGNAME:latest with UID $EXTERNAL_UID..."
local EXTERNAL_UID=${1:-$(id -u)}
docker-compose -p uxbox -f docker/devenv/docker-compose.yaml \
docker-compose -p uxbox-devenv -f docker/devenv/docker-compose.yaml \
build --build-arg EXTERNAL_UID=$EXTERNAL_UID --force-rm;
}
@ -25,19 +25,19 @@ function build-devenv-if-not-exists {
function start-devenv {
build-devenv-if-not-exists $@;
docker-compose -p uxbox -f docker/devenv/docker-compose.yaml up -d;
docker-compose -p uxbox-devenv -f docker/devenv/docker-compose.yaml up -d;
}
function stop-devenv {
docker-compose -p uxbox -f docker/devenv/docker-compose.yaml stop -t 2;
docker-compose -p uxbox-devenv -f docker/devenv/docker-compose.yaml stop -t 2;
}
function run-devenv {
if [[ ! $(docker ps -f "name=uxbox-devenv" -q) ]]; then
if [[ ! $(docker ps -f "name=uxbox-devenv-main" -q) ]]; then
start-devenv
fi
docker exec -ti uxbox-devenv /home/uxbox/start.sh;
docker exec -ti uxbox-devenv-main /home/uxbox/start.sh;
}
function run-all-tests {