mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
Merge pull request #2 from madmath03/issue-92
Fix issue #92 by adding API_URL env variable
This commit is contained in:
commit
6b3661edee
2 changed files with 4 additions and 1 deletions
|
@ -1,13 +1,15 @@
|
|||
FROM ubuntu:xenial
|
||||
MAINTAINER Andrey Antukh <niwi@niwi.nz>
|
||||
LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -yq locales ca-certificates wget && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
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
|
||||
|
||||
ENV LANG en_US.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 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 select-window -t uxbox:1
|
||||
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 new-window -t uxbox:2 -n 'backend'
|
||||
|
|
Loading…
Reference in a new issue