2020-01-02 23:28:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2020-04-13 13:06:41 +00:00
|
|
|
if [ "$1" = "-yarn" ]; then
|
|
|
|
pushd ../../ui/ || exit
|
2020-04-15 18:06:17 +00:00
|
|
|
yarn
|
2020-04-13 13:06:41 +00:00
|
|
|
yarn build
|
|
|
|
popd || exit
|
|
|
|
fi
|
2020-01-02 23:28:43 +00:00
|
|
|
|
|
|
|
pushd ../../server/ || exit
|
|
|
|
cargo build
|
|
|
|
popd || exit
|
|
|
|
|
2020-04-10 11:37:35 +00:00
|
|
|
sudo docker build ../../ -f Dockerfile -t lemmy-federation:latest
|
2020-01-02 23:28:43 +00:00
|
|
|
|
2020-04-15 18:06:17 +00:00
|
|
|
sudo docker-compose up
|