Skip to content

Commit

Permalink
modify build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxiaofeng committed Dec 15, 2016
1 parent 5906267 commit a0d4919
Show file tree
Hide file tree
Showing 32 changed files with 203 additions and 103 deletions.
27 changes: 0 additions & 27 deletions build.bat

This file was deleted.

33 changes: 32 additions & 1 deletion build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
github.com/golang/protobuf/proto
#!/bin/bash

#github.com/golang/protobuf/proto
#TODO go get first

echo "build and install library"

cd ./src/bitbotlib
go install

echo "build and install console"
cd ../console
go install

echo "build and install robot"
cd ../robot
go install

echo "copy files to bin folder"
cd ../../bin
mv console ../dist/
mv robot ../dist/

echo "back to original folder"
cd ..

echo "Build websites"
cd hugo

source deploy.sh

echo "Done."
Binary file added dist/console
Binary file not shown.
Binary file added dist/robot
Binary file not shown.
12 changes: 5 additions & 7 deletions hugo/deploy → hugo/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/sh
#!/bin/bash

cd ../public &&
rm -rf * &&
cd ../hugo &&
hugo &&
cd ../public
rm -rf *
cd ../hugo
hugo
rsync -avz -e "ssh -i ~/.ssh/kp-xak5varz" --progress ~/code/bitbot/public/ [email protected]:/home/tong/bitbot.com.cn/

exit 0

20 changes: 16 additions & 4 deletions public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<title>404 Page not found - BitBot</title>
<title>404 Page not found - bitbot</title>

<link href="https://bitbot.com.cn/css/styles.css" rel="stylesheet">
</head>
Expand All @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://bitbot.com.cn/">BitBot</a>
<a class="navbar-brand" href="https://bitbot.com.cn/">bitbot</a>
</div>


Expand All @@ -47,17 +47,29 @@



<li><a href="/dashboard">控制中心</a></li>
<li><a href="/go/dashboard">控制中心</a></li>



<li><a href="/forum">量化社区</a></li>



<li><a href="/tutorial">bitbot API</a></li>



<li><a href="/tutorial">策略学院</a></li>



<li><a href="/go/account"></a></li>



<li><a href="/go/account">账户管理</a></li>


</ul>

</div>
Expand All @@ -79,7 +91,7 @@ <h1>404 Page not found</h1>

<footer class="l-footer">
<div class="container">
<p><span class="h-logo">&copy; BitBot</span></p>
<p><span class="h-logo">&copy; bitbot</span></p>
</div>
</footer>

Expand Down
20 changes: 16 additions & 4 deletions public/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<title>Categories - BitBot</title>
<title>Categories - bitbot</title>

<link href="https://bitbot.com.cn/css/styles.css" rel="stylesheet">
</head>
Expand All @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://bitbot.com.cn/">BitBot</a>
<a class="navbar-brand" href="https://bitbot.com.cn/">bitbot</a>
</div>


Expand All @@ -47,17 +47,29 @@



<li><a href="/dashboard">控制中心</a></li>
<li><a href="/go/dashboard">控制中心</a></li>



<li><a href="/forum">量化社区</a></li>



<li><a href="/tutorial">bitbot API</a></li>



<li><a href="/tutorial">策略学院</a></li>



<li><a href="/go/account"></a></li>



<li><a href="/go/account">账户管理</a></li>


</ul>

</div>
Expand Down Expand Up @@ -137,7 +149,7 @@ <h1>Categories</h1>

<footer class="l-footer">
<div class="container">
<p><span class="h-logo">&copy; BitBot</span></p>
<p><span class="h-logo">&copy; bitbot</span></p>
</div>
</footer>

Expand Down
34 changes: 23 additions & 11 deletions public/first-blog-article/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<title>币小妹带你认识比特币 - BitBot</title>
<title>币小妹带你认识比特币 - bitbot</title>

<meta name="description" content="准备开始写一些比特币和加密货币量化交易的文章。今天是一个好开始!">

<meta property="og:title" content="币小妹带你认识比特币 - BitBot">
<meta property="og:title" content="币小妹带你认识比特币 - bitbot">
<meta property="og:type" content="article">
<meta property="og:url" content="https://bitbot.com.cn/first-blog-article/">
<meta property="og:image" content="https://bitbot.com.cn/images/default.png">
<meta property="og:site_name" content="BitBot">
<meta property="og:site_name" content="bitbot">
<meta property="og:description" content="准备开始写一些比特币和加密货币量化交易的文章。今天是一个好开始!">
<meta property="og:locale" content="ja_JP">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="BitBot">
<meta name="twitter:site" content="bitbot">
<meta name="twitter:url" content="https://bitbot.com.cn/first-blog-article/">
<meta name="twitter:title" content="币小妹带你认识比特币 - BitBot">
<meta name="twitter:title" content="币小妹带你认识比特币 - bitbot">
<meta name="twitter:description" content="准备开始写一些比特币和加密货币量化交易的文章。今天是一个好开始!">
<meta name="twitter:image" content="https://bitbot.com.cn/images/default.png">

Expand All @@ -42,7 +42,7 @@
"@type": "WebPage",
"@id":"https:\/\/bitbot.com.cn\/"
},
"headline": "币小妹带你认识比特币 - BitBot",
"headline": "币小妹带你认识比特币 - bitbot",
"image": {
"@type": "ImageObject",
"url": "https:\/\/bitbot.com.cn\/images\/default.png",
Expand All @@ -53,11 +53,11 @@
"dateModified": "2016-12-08T12:34:32JST",
"author": {
"@type": "Person",
"name": "BitBot"
"name": "bitbot"
},
"publisher": {
"@type": "Organization",
"name": "BitBot",
"name": "bitbot",
"logo": {
"@type": "ImageObject",
"url": "https:\/\/bitbot.com.cn\/images/logo.png",
Expand Down Expand Up @@ -88,7 +88,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://bitbot.com.cn/">BitBot</a>
<a class="navbar-brand" href="https://bitbot.com.cn/">bitbot</a>
</div>


Expand All @@ -101,17 +101,29 @@



<li><a href="/dashboard">控制中心</a></li>
<li><a href="/go/dashboard">控制中心</a></li>



<li><a href="/forum">量化社区</a></li>



<li><a href="/tutorial">bitbot API</a></li>



<li><a href="/tutorial">策略学院</a></li>



<li><a href="/go/account"></a></li>



<li><a href="/go/account">账户管理</a></li>


</ul>

</div>
Expand Down Expand Up @@ -236,7 +248,7 @@ <h1 class="title">币小妹带你认识比特币</h1>

<footer class="l-footer">
<div class="container">
<p><span class="h-logo">&copy; BitBot</span></p>
<p><span class="h-logo">&copy; bitbot</span></p>
</div>
</footer>

Expand Down
20 changes: 16 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<title>BitBot - BitBot</title>
<title>bitbot - bitbot</title>

<link href="https://bitbot.com.cn/css/styles.css" rel="stylesheet">
</head>
Expand All @@ -34,7 +34,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://bitbot.com.cn/">BitBot</a>
<a class="navbar-brand" href="https://bitbot.com.cn/">bitbot</a>
</div>


Expand All @@ -47,17 +47,29 @@



<li><a href="/dashboard">控制中心</a></li>
<li><a href="/go/dashboard">控制中心</a></li>



<li><a href="/forum">量化社区</a></li>



<li><a href="/tutorial">bitbot API</a></li>



<li><a href="/tutorial">策略学院</a></li>



<li><a href="/go/account"></a></li>



<li><a href="/go/account">账户管理</a></li>


</ul>

</div>
Expand Down Expand Up @@ -87,7 +99,7 @@

<footer class="l-footer">
<div class="container">
<p><span class="h-logo">&copy; BitBot</span></p>
<p><span class="h-logo">&copy; bitbot</span></p>
</div>
</footer>

Expand Down
4 changes: 2 additions & 2 deletions public/index.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>BitBot</title>
<title>bitbot</title>
<link>https://bitbot.com.cn/index.xml</link>
<description>Recent content on BitBot</description>
<description>Recent content on bitbot</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Thu, 08 Dec 2016 16:28:30 +0800</lastBuildDate>
Expand Down
Loading

0 comments on commit a0d4919

Please sign in to comment.