mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 04:59:31 +00:00
rename rollback to upgrade
This commit is contained in:
@@ -18,7 +18,7 @@ import { scheduler } from './scheduler';
|
|||||||
import type { ExecaChildProcess } from 'execa';
|
import type { ExecaChildProcess } from 'execa';
|
||||||
import { FastifyReply } from 'fastify';
|
import { FastifyReply } from 'fastify';
|
||||||
|
|
||||||
export const version = '3.12.37';
|
export const version = '3.12.38';
|
||||||
export const isDev = process.env.NODE_ENV === 'development';
|
export const isDev = process.env.NODE_ENV === 'development';
|
||||||
export const proxyPort = process.env.COOLIFY_PROXY_PORT;
|
export const proxyPort = process.env.COOLIFY_PROXY_PORT;
|
||||||
export const proxySecurePort = process.env.COOLIFY_PROXY_SECURE_PORT;
|
export const proxySecurePort = process.env.COOLIFY_PROXY_SECURE_PORT;
|
||||||
|
|||||||
@@ -56,23 +56,23 @@
|
|||||||
|
|
||||||
async function rollback() {
|
async function rollback() {
|
||||||
if (rollbackVersion) {
|
if (rollbackVersion) {
|
||||||
const sure = confirm(`Are you sure you want rollback Coolify to ${rollbackVersion}?`);
|
const sure = confirm(`Are you sure you want upgrade Coolify to ${rollbackVersion}?`);
|
||||||
if (sure) {
|
if (sure) {
|
||||||
try {
|
try {
|
||||||
loading.rollback = true;
|
loading.rollback = true;
|
||||||
console.log('loading.rollback', loading.rollback);
|
console.log('loading.rollback', loading.rollback);
|
||||||
if (dev) {
|
if (dev) {
|
||||||
console.log('rolling back to', rollbackVersion);
|
console.log('Upgrading to ', rollbackVersion);
|
||||||
await asyncSleep(4000);
|
await asyncSleep(4000);
|
||||||
return window.location.reload();
|
return window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
addToast({
|
addToast({
|
||||||
message: 'Rollback started...',
|
message: 'Upgrade started...',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
await post(`/update`, { type: 'update', latestVersion: rollbackVersion });
|
await post(`/update`, { type: 'update', latestVersion: rollbackVersion });
|
||||||
addToast({
|
addToast({
|
||||||
message: 'Rollback completed.<br><br>Waiting for the new version to start...',
|
message: 'Upgrade completed.<br><br>Waiting for the new version to start...',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -381,12 +381,12 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-4 items-center">
|
<div class="grid grid-cols-4 items-center pb-12">
|
||||||
<div class="col-span-2">
|
<div class="col-span-2">
|
||||||
Rollback Coolify to a specific version
|
Upgrade Coolify to a specific version
|
||||||
<Explainer
|
<Explainer
|
||||||
position="dropdown-bottom"
|
position="dropdown-bottom"
|
||||||
explanation="You can rollback to a specific version of Coolify. This will not affect your current running resources.<br><br><a href='https://github.com/coollabsio/coolify/releases' target='_blank'>See available versions</a>"
|
explanation="You can upgrade to a specific version of Coolify. This will not affect your current running resources, but could cause issues if you downgrade to an older version where the database layout was different..<br><br><a href='https://github.com/coollabsio/coolify/releases' target='_blank'>See available versions</a>"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
@@ -401,7 +401,7 @@
|
|||||||
class:loading={loading.rollback}
|
class:loading={loading.rollback}
|
||||||
class="btn btn-primary ml-2"
|
class="btn btn-primary ml-2"
|
||||||
disabled={!rollbackVersion || loading.rollback}
|
disabled={!rollbackVersion || loading.rollback}
|
||||||
on:click|preventDefault|stopPropagation={rollback}>Rollback</button
|
on:click|preventDefault|stopPropagation={rollback}>Upgrade</button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid grid-cols-2 items-center">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "coolify",
|
"name": "coolify",
|
||||||
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
|
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
|
||||||
"version": "3.12.37",
|
"version": "3.12.38",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": "github:coollabsio/coolify",
|
"repository": "github:coollabsio/coolify",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user