0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-09 14:21:42 -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 ;; --- Migrations
(def migrations (def +migrations+
{:name "uxbox-main" {:name "uxbox-main"
:steps :steps
[{:desc "Initial triggers and utils." [{:desc "Initial triggers and utils."
@ -50,7 +50,7 @@
(defn migrate (defn migrate
[] []
(with-open [ctx (mg/context db/pool)] (with-open [ctx (mg/context db/pool)]
@(mg/migrate ctx migrations))) @(mg/migrate ctx +migrations+)))
(defstate migrations (defstate migrations
:start (migrate)) :start (migrate))

View file

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