Skip to content

Commit

Permalink
rename website -> client
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeragamba committed Aug 13, 2024
1 parent 2ca3027 commit 9aa44d3
Show file tree
Hide file tree
Showing 287 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
ZeraDraws Website
============
=================

Setup
-----
Recommended to use RubyMine for development.
If you're on Windows it's recommended to clone the project into the WSL file system.

Requirements:

- Docker
- NodeJS (v17+)

After cloning, duplicate `.env.example` as `.env` and configure for your system. The dotenv file will be used for both
client and server.

Install client dependencies:

```bash
$ cd client
$ yarn install
```

### RubyMine, Docker, and WSL
Due to a bug in RubyMine, debugging Rails through Docker while files are in the Linux file system doesn't work as
expected. For the time being, it's recommended to install Ruby and run the server outside of Docker. A special run

Due to a bug in RubyMine, debugging Rails through Docker while files are in the Linux file system doesn't work as
expected. For the time being, it's recommended to install Ruby and run the server outside of Docker. A special run
configuration is provided to assist with setting up the application.

Run
---
If using RubyMine, use the provided "Start App" run configurations.

Start server:

```bash
$ docker-compose -up
```

Build and start client:

```bash
$ cd client
$ yarn start
Expand Down
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ echo "Deploying: $LAST_DEPLOY_SHA -> $CUR_DEPLOY_SHA"
echo "--- Rebuilding containers ---"
docker compose -f docker-compose.production.yml build

CLIENT_CHANGED=$(git diff --quiet $LAST_DEPLOY_SHA $CUR_DEPLOY_SHA -- packages/website && echo false || echo true)
CLIENT_CHANGED=$(git diff --quiet $LAST_DEPLOY_SHA $CUR_DEPLOY_SHA -- packages/client && echo false || echo true)
echo "--- Rebuilding Client ---"
if [[ $CLIENT_CHANGED == "true" ]]; then
docker compose -f docker-compose.production.yml up website
docker compose -f docker-compose.production.yml up client
else
echo "Skipped: client unchanged"
fi
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
IMAGES_DIR: "/opt/images"

client:
build: packages/website
build: packages/client
volumes:
- ./.volumes/client:/opt/app/dist:rw
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
file: docker-compose.production.yml
service: client
volumes:
- ./packages/website/src:/opt/app/src:rw
- ./packages/client/src:/opt/app/src:rw
- "${SSL_CRT}:/opt/ssl/current.crt:ro"
- "${SSL_KEY}:/opt/ssl/current.key:ro"
environment:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9aa44d3

Please sign in to comment.