Consolidate into version.txt for deployment and frontent
This commit is contained in:
10
deploy.sh
10
deploy.sh
@@ -133,8 +133,7 @@ check_github_token() {
|
||||
update_version_file() {
|
||||
print_header "Updating Version File"
|
||||
|
||||
local version_file="./frontend/VERSION"
|
||||
local version_txt_file="./frontend/public/version.txt"
|
||||
local version_file="./frontend/public/version.txt"
|
||||
local current_version=""
|
||||
|
||||
# Check if version file exists
|
||||
@@ -146,7 +145,6 @@ update_version_file() {
|
||||
# Update version file with new version (strip 'v' prefix if present)
|
||||
local new_version="${VERSION#v}"
|
||||
echo "$new_version" > "$version_file"
|
||||
echo "$new_version" > "$version_txt_file"
|
||||
print_success "Updated version file to: $new_version"
|
||||
}
|
||||
|
||||
@@ -379,13 +377,13 @@ print_summary() {
|
||||
echo "Version: ${VERSION}"
|
||||
echo ""
|
||||
echo "Version Management:"
|
||||
echo " Frontend version file updated: ./frontend/VERSION"
|
||||
echo " Frontend version file updated: ./frontend/public/version.txt"
|
||||
echo " Version displayed in footer: v${VERSION#v}"
|
||||
echo ""
|
||||
echo "Next Steps:"
|
||||
echo " 1. Commit version update:"
|
||||
echo " git add frontend/VERSION"
|
||||
echo " git commit -m \"Bump version to ${VERSION#v}\""
|
||||
echo " git add frontend/public/version.txt"
|
||||
echo " git commit -m \"Bump version to ${VERSION#v}\""
|
||||
echo " 2. Pull images: docker pull ${BACKEND_IMAGE}"
|
||||
echo " 3. Configure production secrets (JWT_SECRET)"
|
||||
echo " 4. Set environment variables (CORS_ORIGIN, ALLOW_REGISTRATION)"
|
||||
|
||||
@@ -3,7 +3,7 @@ FROM nginx:alpine
|
||||
# Copy nginx configuration
|
||||
COPY ./frontend/nginx.prod.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Copy frontend files (includes version.txt)
|
||||
# Copy frontend files (includes version.txt for frontend version display)
|
||||
COPY ./frontend/public /usr/share/nginx/html
|
||||
|
||||
# Expose ports
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
1.1.1
|
||||
@@ -4,9 +4,6 @@
|
||||
<p class="text-gray-400">
|
||||
EDH Stats Tracker - Track your Commander games with style
|
||||
</p>
|
||||
<p class="text-gray-500 text-sm mt-2">
|
||||
Built with Fastify, SQLite, and Alpine.js
|
||||
</p>
|
||||
<p class="text-gray-600 text-xs mt-3" id="version-footer">
|
||||
<!-- Version loaded dynamically -->
|
||||
</p>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.1.1
|
||||
1.1.2
|
||||
|
||||
Reference in New Issue
Block a user