Rename to build.sh

This commit is contained in:
perennial
2024-09-23 14:27:05 +10:00
parent 67df71a48b
commit 5401381de8
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ COPY . .
# Build the application
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
./manage.sh build
./build.sh build
# Stage for creating the non-privileged user
FROM alpine:3.20 AS user-stage
+2 -2
View File
@@ -45,12 +45,12 @@ Then, run the project:
git clone https://codeberg.org/VnPower/PixivFE.git && cd PixivFE
# Run PixivFE in development mode (styles and templates reload automatically)
PIXIVFE_DEV=1 <other_environment_variables> ./manage.sh run
PIXIVFE_DEV=1 <other_environment_variables> ./build.sh run
```
## Hosting PixivFE
You can use PixivFE for personal use! Assuming that you use an operating system that can run POSIX shell scripts, install `go`, clone this repository, and use the `manage.sh` shell script to build and run the project.
You can use PixivFE for personal use! Assuming that you use an operating system that can run POSIX shell scripts, install `go`, clone this repository, and use the `build.sh` shell script to build and run the project.
I recommend self-hosting your own instance for personal use, instead of relying entirely on official instances.
To deploy PixivFE using Docker or the compiled binary, see [Hosting PixivFE](https://pixivfe-docs.pages.dev/hosting-pixivfe/).
+1 -1
View File
@@ -102,7 +102,7 @@ execute_command() {
# Main execution
if [ $# -eq 0 ]; then
help
build
else
execute_command "$@"
fi
+1 -1
View File
@@ -29,7 +29,7 @@ This file contains guidelines for code development.
## Adding features
- Edit the `manage.sh` if you want to create scripts that help with the process of developing and/or using PixivFE.
- Edit the `build.sh` if you want to create scripts that help with the process of developing and/or using PixivFE.
- Don't create or add any shell files or configuration files of external programs in the root directory unless necessary.
- Add comments where necessary to explain complex logic or non-obvious code behavior.
+2 -2
View File
@@ -112,12 +112,12 @@ Copy `.env.example` to `.env` and configure the variables as needed. Refer to th
### 3. Building and running PixivFE
PixivFE provides a shell script named `manage.sh` to simplify the build and run process.
PixivFE provides a shell script named `build.sh` to simplify the build and run process.
To build and run PixivFE, use the following commands:
```bash
./manage.sh run
./build.sh run
```
This will build the PixivFE binary and start it. It will be accessible at `localhost:8282`.