Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Nov 23, 2023
1 parent 36ef9b3 commit 840cae4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ By default, your local lila instance will use the version of chessground that is
3. Start the lila ui build in watch mode:

```bash
docker compose run --rm ui bash -c "/lila/ui/build -w"
docker compose run --rm ui /lila/ui/build -w
```

Then you can see the updated chessground demo at http://localhost:8090/demo.html and when you refresh lila, it will use the local copy of chessground.
Expand Down
36 changes: 18 additions & 18 deletions command/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,6 @@ fn main() -> std::io::Result<()> {
}
}

fn gitpod_welcome() -> std::io::Result<()> {
println!("{}", "################".green());
println!(
"{}",
"Your Lichess development environment is starting!".green()
);
println!(
"{}",
"Monitor the progress in the 'lila' container with the command:".green()
);
println!("{}", " docker compose logs lila --follow".green().bold());
println!(
"{}",
"For full documentation, see: https://lichess-org.github.io/lila-gitpod/".green()
);
Ok(())
}

fn setup() -> std::io::Result<()> {
intro(BANNER)?;

Expand Down Expand Up @@ -334,3 +316,21 @@ fn prompt_for_optional_services() -> Result<Vec<OptionalService>, Error> {
)
.interact()
}

fn gitpod_welcome() -> std::io::Result<()> {
println!("{}", "################".green());
println!(
"{}",
"Your Lichess development environment is starting!".green()
);
println!(
"{}",
"Monitor the progress in the 'lila' container with the command:".green()
);
println!("{}", " docker compose logs lila --follow".green().bold());
println!(
"{}",
"For full documentation, see: https://lichess-org.github.io/lila-gitpod/".green()
);
Ok(())
}
3 changes: 1 addition & 2 deletions lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ run_setup() {
export $(cat .env | xargs)

docker compose build
# separate build specifically for utils profile otherwise its Dockerfile changes won't be detected
docker compose --profile utils build

docker compose up -d

echo "Compiling js/css..."
docker compose run --rm ui bash -c "/lila/ui/build"
docker compose run --rm ui /lila/ui/build

if [ "$SETUP_DB" = "true" ]; then
setup_database
Expand Down

0 comments on commit 840cae4

Please sign in to comment.