mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Rename to build.sh
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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/).
|
||||
|
||||
@@ -102,7 +102,7 @@ execute_command() {
|
||||
|
||||
# Main execution
|
||||
if [ $# -eq 0 ]; then
|
||||
help
|
||||
build
|
||||
else
|
||||
execute_command "$@"
|
||||
fi
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user