mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.8 KiB
73 lines
1.8 KiB
3 years ago
|
---
|
||
|
title: 'Upgrading'
|
||
2 years ago
|
description: 'Upgrading NocoDB : Docker, Node and Homebrew!'
|
||
3 years ago
|
---
|
||
|
|
||
1 year ago
|
By default, if `NC_DB` is not specified upon [installation](/getting-started/installation), then SQLite will be used to store metadata. We suggest users to separate the metadata and user data in different databases as pictured in our [architecture](/engineering/architecture).
|
||
2 years ago
|
|
||
3 years ago
|
## Docker
|
||
3 years ago
|
|
||
3 years ago
|
### Find, Stop & Delete NocoDB Docker Container
|
||
3 years ago
|
|
||
3 years ago
|
```bash
|
||
|
# find NocoDB container ID
|
||
|
docker ps
|
||
|
# stop NocoDB container
|
||
|
docker stop <YOUR_CONTAINER_ID>
|
||
|
# delete NocoDB container
|
||
|
docker rm <YOUR_CONTAINER_ID>
|
||
3 years ago
|
```
|
||
3 years ago
|
|
||
2 years ago
|
Note: Deleting your docker container without setting `NC_DB` or mounting to a persistent volume for a default SQLite database will result in losing your data. See examples below.
|
||
|
|
||
3 years ago
|
### Find & Remove NocoDB Docker Image
|
||
3 years ago
|
|
||
3 years ago
|
```bash
|
||
|
# find NocoDB image
|
||
|
docker images
|
||
|
# delete NocoDB image
|
||
|
docker rmi <YOUR_IMAGE_ID>
|
||
3 years ago
|
```
|
||
3 years ago
|
|
||
3 years ago
|
### Pull the latest NocoDB image with same environment variables
|
||
|
|
||
|
```bash
|
||
3 years ago
|
docker run -d -p 8080:8080 \
|
||
3 years ago
|
-e NC_DB="<YOUR_NC_DB_URL>" \
|
||
|
-e NC_AUTH_JWT_SECRET="<YOUR_NC_AUTH_JWT_SECRET_IF_GIVEN>" \
|
||
3 years ago
|
nocodb/nocodb:latest
|
||
3 years ago
|
```
|
||
3 years ago
|
|
||
3 years ago
|
Updating nocodb docker container is similar to updating [any other docker containers](https://www.whitesourcesoftware.com/free-developer-tools/blog/update-docker-images/).
|
||
3 years ago
|
|
||
3 years ago
|
### Example: Docker Upgrade
|
||
3 years ago
|
![Screen Shot 2021-09-16 at 09 23 07](https://user-images.githubusercontent.com/5435402/133578984-53c6b96b-3e8b-4a96-b6c2-36f3c09ffdde.png)
|
||
3 years ago
|
|
||
|
## Node
|
||
|
|
||
|
Updating docker container is similar to updating a npm package.
|
||
|
|
||
|
From your root folder
|
||
|
|
||
3 years ago
|
#### Uninstall NocoDB package
|
||
|
|
||
3 years ago
|
```bash
|
||
|
npm uninstall nocodb
|
||
|
```
|
||
3 years ago
|
#### Install NocoDB package
|
||
|
|
||
3 years ago
|
```bash
|
||
|
npm install --save nocodb
|
||
|
```
|
||
|
|
||
2 years ago
|
## Homebrew
|
||
|
|
||
2 years ago
|
Run following commands to upgrade Homebrew Nocodb version.
|
||
2 years ago
|
|
||
|
```bash
|
||
|
# Update the local homebrew formulas
|
||
|
brew update
|
||
|
# Upgrade nocodb package
|
||
|
brew upgrade nocodb
|
||
|
```
|