GithubHelp home page GithubHelp logo

typecho_vercel's Introduction

Vercel部署Typecho博客系统

一键部署

注册并登录好Vercel账号点击此链接可以直接跳转Vercel新建项目,效果与第一步类似(完成后可跳过第一步)
Deploy to Vercel

第一步(使用一键部署跳过此步骤)

1.Github创建一个仓库 设置为private
2.克隆本仓库代码到你创建的仓库

第二步

1.获取一个数据库可自己搭建也可以自己找 我这边推荐railwayPlanetScale(PlantScale好像已经不提供**内地服务了)
2.注册一个账号并新建MySQL数据库
3.修改config.inc.php中

/** 定义数据库参数 */
$db = new Typecho_Db('Pdo_Mysql', 'typecho_');
$db->addServer(array (
  'host' => '请填入数据库地址',
  'user' => '数据库用户名',
  'password' => '数据库密码',
  'charset' => 'utf8',
  'port' => '3306',
  'database' => '数据库名称',
  'engine' => 'MyISAM',
), Typecho_Db::READ | Typecho_Db::WRITE);
Typecho_Db::set($db);

修改成自己的数据库

第三步

1.使用Vercel部署github仓库(使用一键部署跳过此步骤)
2.用Vercel提供的域名(现在一定要绑定自己的域名,vercel.app的域名已经被墙) + /install.php开始安装(具体安装可自行搜索Typecho安装教程)

typecho_vercel's People

Contributors

qzkevin avatar tianli0 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.