Deploy Ghost Development on Bae

Source: Internet
Author: User

Start by applying for a BAE account and then go to the BAE console to add the deployment

Note that the memory to choose 256M, Ghost needs more than 140M of memory, the code version of the tool to choose Git

Add private MySQL service, come to console select private MySQL, because free MySQL has long connection problem, need to change to Knex module, there is no way to change. Changing the number of connection pools online to 0, or capturing ereset anomalies, is ineffective.


After adding, you can find the newly added database in the Extended service list, which can see the database address, this address will be filled in the configuration file

Request to open Bos (object store), then go to the BOS console to create a new bucket, create your own bucket, wait for the bucket name to fill in the configuration file

Get the Source Ghost Project official address, if you do not want to change from the official website source code, you can also use I have changed
clone https://github.com/qdk0901/Ghost.git -b baidu_bce_githubgit checkout -b master (新建一个master分支,因为BAE只认master分支)
Cloning completed as

Get the GIT project address for BAE deployment

Modify the configuration file to open Config.example.js, mainly modify the following content, where Ak/sk from the security certification to obtain
if(Process.env.SERVER_SOFTWARE = =' bae/3.0 '{config.development.database = {client:' MySQL ', connection: {host:' <private mysql address> ',//Fill in your private MySQL address herePort:' 10396 ', User:' <ak> ',//Fill in your access keyPassword:' <sk> ',//Fill in your secret keyDatabase:' <database name> ',//Fill in your database nameCharSet:' UTF8 '}, Debug:false,    }; Console.Log(' database switch to MySQL for BAE ');} Config.development.storage = {active:' BAIDU-BCE ',//active: ' Aliyun-oss ',Config: {baidubce: {credentials: {ak:' <ak> ',//Fill in your access keyrk[' <sk> ' //Fill in your secret key}, Endpoint:' http://bj.bcebos.com ', bucket:' <your bucket> ',//Fill in your bucket nameObjecturlprefix:' http://< fill in your bucket name >.bj.bcebos.com '}    }}
Add BAE git project as remote
add bae https://git.duapp.com/appidf29vg2kvnggit pull bae master (把BAE上的东西拖下来合并,之后会package.jsonpush bae master (把本地代码推送到bae去)
After the code push is complete, the results are as

Everything is ready, you can go to the BAE deployment list to publish the project, the first conference more long, released normal, the effect is as follows

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Deploy Ghost Development on Bae

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.