Add some scripts

This commit is contained in:
Donovan Daniels 2024-05-03 18:09:53 -05:00
parent 989d0db926
commit 709bdda97b
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA
6 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,3 @@
#!/usr/bin/env sh #!/usr/bin/env sh
docker compose -f docker-compose.prod.yml run --rm -e RAILS_ENV=production websites rake assets:precompile docker compose -f docker-compose.prod.yml run --rm -e RAILS_ENV=production websites rake assets:precompile
docker compose -f docker-compose.prod.yml restart websites

2
bin/down Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
docker compose -f docker-compose.prod.yml down

2
bin/up Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
docker compose -f docker-compose.prod.yml up -d

2
bin/update Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
docker compose -f docker-compose.prod.yml up -d --no-deps --build

View File

@ -90,7 +90,6 @@ services:
rethinkdb: rethinkdb:
image: rethinkdb image: rethinkdb
command: rethinkdb --bind all -n rdb command: rethinkdb --bind all -n rdb
container_name: rethinkdb.websites4
volumes: volumes:
- ./data/rethink:/data - ./data/rethink:/data
deploy: deploy:

View File

@ -87,7 +87,6 @@ services:
rethinkdb: rethinkdb:
image: rethinkdb image: rethinkdb
command: rethinkdb --bind all -n rdb command: rethinkdb --bind all -n rdb
container_name: rethinkdb.websites4
volumes: volumes:
- rethinkdb_data:/data - rethinkdb_data:/data
deploy: deploy: