mirror of
https://github.com/penpot/penpot.git
synced 2025-02-14 19:19:09 -05:00
🐛 Fix issue #92 by adding API_URL env variable
This commit is contained in:
parent
43f3c43eab
commit
8a6d263145
2 changed files with 4 additions and 1 deletions
|
@ -1,13 +1,15 @@
|
||||||
FROM ubuntu:xenial
|
FROM ubuntu:xenial
|
||||||
MAINTAINER Andrey Antukh <niwi@niwi.nz>
|
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -yq locales ca-certificates wget && \
|
apt-get install -yq locales ca-certificates wget && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
||||||
RUN locale-gen && update-locale LANG=en_US.UTF-8 LC_ALL=C.UTF-8
|
RUN locale-gen && update-locale LANG=en_US.UTF-8 LC_ALL=C.UTF-8
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
ENV LC_ALL C.UTF-8
|
ENV LC_ALL C.UTF-8
|
||||||
|
ENV API_URL http://127.0.0.1:6060/api
|
||||||
|
|
||||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list
|
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list
|
||||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||||
|
|
|
@ -5,6 +5,7 @@ tmux -2 new-session -d -s uxbox
|
||||||
tmux new-window -t uxbox:1 -n 'figwheel'
|
tmux new-window -t uxbox:1 -n 'figwheel'
|
||||||
tmux select-window -t uxbox:1
|
tmux select-window -t uxbox:1
|
||||||
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
|
tmux send-keys -t uxbox 'cd uxbox/frontend' enter C-l
|
||||||
|
tmux send-keys -t uxbox "sed -i -e 's/\"uxbox.config.url\" \".*\"/\"uxbox.config.url\" \"${API_URL}\"/g' figwheel.clj" enter C-l
|
||||||
tmux send-keys -t uxbox 'npm run figwheel' enter
|
tmux send-keys -t uxbox 'npm run figwheel' enter
|
||||||
|
|
||||||
tmux new-window -t uxbox:2 -n 'backend'
|
tmux new-window -t uxbox:2 -n 'backend'
|
||||||
|
|
Loading…
Add table
Reference in a new issue