Skip to content

Commit

Permalink
update some text
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Mar 1, 2025
1 parent 039898e commit 1582f2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/providers/php/nginx.template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ http {
}
{{end}}

{{if .NIXPACKS_PHP_FALLBACK_PATH}}
{{if .RAILPACK_PHP_FALLBACK_PATH}}
location / {
try_files $uri $uri/ {{.NIXPACKS_PHP_FALLBACK_PATH}}?$query_string;
try_files $uri $uri/ {{.RAILPACK_PHP_FALLBACK_PATH}}?$query_string;
}
{{end}}

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GHCR](https://github.com/railwayapp/railpack/pkgs/container/railpack-frontend).

## Curl

Download Nixpacks from GH releases and install automatically
Download Railpack from GH releases and install automatically

```sh
curl -sSL https://railpack.com/install.sh | bash
Expand Down
4 changes: 1 addition & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ has() {
command -v "$1" 1>/dev/null 2>&1
}

# Update the temp file function to use railpack instead of nixpacks
get_tmpfile() {
local suffix
suffix="$1"
Expand Down Expand Up @@ -210,15 +209,14 @@ detect_platform() {
printf '%s' "${platform}"
}

# Simplify arch detection since we only support x86_64 for now
detect_arch() {
local arch
arch="$(uname -m | tr '[:upper:]' '[:lower:]')"

case "${arch}" in
amd64|x86_64) printf 'x86_64' ;;
arm64|aarch64) printf 'arm64' ;;
*) printf 'x86_64' ;; # default to x86_64 for unknown architectures
*) printf 'x86_64' ;;
esac
}

Expand Down

0 comments on commit 1582f2d

Please sign in to comment.