GithubHelp home page GithubHelp logo

zhengmingliang / geek-navigation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geekape/geek-navigation

0.0 1.0 0.0 8.32 MB

❤️ 极客猿梦导航-独立开发者的导航站!

Home Page: http://navigation.zcbing.cn/

CSS 5.53% JavaScript 29.15% Vue 64.53% Shell 0.14% SCSS 0.65%

geek-navigation's Introduction

极客猿梦导航

独立开发者的导航站 
Demo | 更新日志 | 提BUG | QQ交流群

版本说明

应用截图

首页

安装部署

nuxt版本

  1. 找到deploy/index.js文件,填写下服务器信息,配置下自动部署

  2. 找到package.json文件,配置下 root

  3. 找到nuxt.config.js文件,配置mongodb链接

  4. 运行npm deploy自动构建并打包到服务器上

  5. 配置下网站的nginx文件,替换掉server_name

map $sent_http_content_type $expires {
    "text/html"                 epoch;
    "text/html; charset=utf-8"  epoch;
    default                     off;
}

server {
    listen          80;             # the port nginx is listening on
    server_name     navigation.zcbing.cn;    # setup your domain here

    gzip            on;
    gzip_types      text/plain application/xml text/css application/javascript;
    gzip_min_length 1000;

    location / {
        expires $expires;

        proxy_redirect                      off;
        proxy_set_header Host               $host;
        proxy_set_header X-Real-IP          $remote_addr;
        proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto  $scheme;
        proxy_read_timeout          1m;
        proxy_connect_timeout       1m;
        proxy_pass                          http://127.0.0.1:3000; # set the address of the Node.js instance here
    }
}
  1. 服务器项目根目录下npm install安装包

  2. npm i -g pm2安装下node进程管理

  3. pm2 start npm --name "nav" -- run start启动下服务器

  4. 访问下你配置的域名就ok了。

geek-navigation's People

Contributors

dependabot[bot] avatar geekape avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.