clarified some lines of README & improved some scripts

pull/29/head
tycrek 3 years ago
parent 423fa4a78c
commit d75a8f77d1
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -332,12 +332,12 @@ docker-compose up -d
# Step 4: # Step 4:
# Check the logs to see if the server is running # Check the logs to see if the server is running
docker-compose logs -f -n 50 ass-docker npm run docker-logs
``` ```
If you used `npm run docker-compose`, you'll have to scroll up to find your initial `ass` admin token. Look at the output of `npm start` to see find it. If you ran the manual install, it was printed when you ran `npm start`, so copy it from there. If you used `npm run docker-compose`, you'll have to scroll up to find your initial `ass` admin token. Look at the output of `npm start` to see find it. If you ran the manual install, it was printed when you ran `npm start`, so copy it from there.
To view the container live logs, use `docker-compose logs -f -n 50 ass-docker`. To view the container live logs, use `npm run docker-logs`.
You should now be able to access the ass server at `http://localhost:40115/` (ass-docker will bind to host `0.0.0.0` to allow external access). You can configure a reverse proxy such as [Caddy](https://jmoore.dev/tutorials/2021/03/caddy-express-reverse-proxy/) to make it accessible from the internet with automatic SSL. You should now be able to access the ass server at `http://localhost:40115/` (ass-docker will bind to host `0.0.0.0` to allow external access). You can configure a reverse proxy such as [Caddy](https://jmoore.dev/tutorials/2021/03/caddy-express-reverse-proxy/) to make it accessible from the internet with automatic SSL.

@ -19,8 +19,8 @@
"prestart": "npm run engine-check", "prestart": "npm run engine-check",
"presetup": "npm run engine-check", "presetup": "npm run engine-check",
"logs": "node ./node_modules/@tycrek/log/socketClient.js", "logs": "node ./node_modules/@tycrek/log/socketClient.js",
"docker-compose": "npm i && npm run setup && node . --docker-compose && docker-compose up -d && echo \"Check the logs to see if the server is running:\" && echo \"$ docker logs -f -n 50 ass-docker\"", "docker-compose": "docker-compose up -d && docker-compose exec ass npm run setup && docker-compose restart",
"docker-logs": "docker logs -f -n 50 ass-docker", "docker-logs": "docker-compose logs -f --tail=50 --no-log-prefix ass",
"docker-stop": "docker-compose stop", "docker-stop": "docker-compose stop",
"docker-start": "docker-compose start", "docker-start": "docker-compose start",
"docker-restart": "docker-compose restart" "docker-restart": "docker-compose restart"

Loading…
Cancel
Save