-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add basic configuration * Add navbar,search * Add footer, navbar, chord, sidebar * Add hotkeys, url-shortener, geodata * Add random number & parse html * Add images checker * Add qr code generator * Add downloader * Add twibbon & search * Add link * Add contact * Add contact * Fixed hotkeys, contact * Changed navigation mobile * Fixed seo & add email preferences pages * Add notification events page * Add user, fixed navbar * Add chord dashboard, fixed pagination * Add twibbon dashboard * Add quiz and blog dashboard * Add comments * Add dashboard, add notification * Add likes, notification, support, update view, report * Beta release
- Loading branch information
1 parent
bbd158e
commit 6c0b315
Showing
426 changed files
with
35,964 additions
and
61,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,60 @@ | ||
# Portalnesia Website | ||
|
||
 | ||
|
||
New design of Portalnesia. Clean. Simple | ||
|
||
## Deploy | ||
|
||
### First Steps | ||
|
||
**If not change dependencies, skip this steps** | ||
|
||
- Copy files to server | ||
|
||
- package.json | ||
- package-lock.json | ||
- pm2.config.json | ||
- env files (.env.local, .env.development, .env.production) | ||
|
||
|
||
- Install production depedencies | ||
|
||
RUN | ||
|
||
```bash | ||
RUN NODE_ENV=production npm ci | ||
#or | ||
npm ci --omit=dev | ||
``` | ||
|
||
|
||
### Continuous Development | ||
|
||
- Build from local computer | ||
|
||
In local computer, RUN: | ||
|
||
```bash | ||
npm run build && npm run pack | ||
``` | ||
|
||
- Copy build files to server | ||
|
||
Copy `/tmp/portalnesia.zip` to server | ||
|
||
- Unzip the build files that have been sent to the server | ||
|
||
RUN | ||
|
||
```bash | ||
unzip portalnesia.zip | ||
``` | ||
|
||
- Running server | ||
|
||
RUN | ||
|
||
```bash | ||
pm2 start pm2.config.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
const zl = require("zip-lib"); | ||
|
||
async function postbuild() { | ||
const zip = new zl.Zip(); | ||
const standalone_path = path.resolve("./.next/standalone"); | ||
|
||
// copy static to standalone | ||
await fs.copy(path.resolve('./.next/static'),standalone_path+'/.next/static'); | ||
|
||
// copy public to standalone | ||
await fs.copy(path.resolve('./public'),standalone_path+'/public'); | ||
|
||
// copy server_standalone.js | ||
await fs.copy(path.resolve('./server_standalone.js'),standalone_path+'/server_standalone.js'); | ||
|
||
// Add all standalone folder to zip | ||
await zl.archiveFolder(standalone_path,path.resolve('./tmp/portalnesia.zip')); | ||
|
||
console.log("DONE"); | ||
} | ||
postbuild(); |
Oops, something went wrong.