-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2014-10-20-gandi-simple-hosting.html
28 lines (26 loc) · 8.53 KB
/
2014-10-20-gandi-simple-hosting.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Gandi Simple Hosting | Cake17's Blog</title>
<meta name="description" content="Tips for Gandi Simple Hosting (Jekyll, backup, ...)">
<link rel="preload" href="/assets/css/0.styles.5852889d.css" as="style"><link rel="preload" href="/assets/js/app.e0c4edb2.js" as="script"><link rel="preload" href="/assets/js/8.ea5ae0d2.js" as="script"><link rel="prefetch" href="/assets/js/10.998276c8.js"><link rel="prefetch" href="/assets/js/11.896d00f2.js"><link rel="prefetch" href="/assets/js/12.65c2ceeb.js"><link rel="prefetch" href="/assets/js/13.0f03f8ba.js"><link rel="prefetch" href="/assets/js/14.89e54d46.js"><link rel="prefetch" href="/assets/js/15.e43801fe.js"><link rel="prefetch" href="/assets/js/16.fe34f3f2.js"><link rel="prefetch" href="/assets/js/17.e270c220.js"><link rel="prefetch" href="/assets/js/18.0bcf9e03.js"><link rel="prefetch" href="/assets/js/19.41e1c2ce.js"><link rel="prefetch" href="/assets/js/2.5b07ba1d.js"><link rel="prefetch" href="/assets/js/20.5581d075.js"><link rel="prefetch" href="/assets/js/21.cd9fdbbe.js"><link rel="prefetch" href="/assets/js/22.901a2580.js"><link rel="prefetch" href="/assets/js/23.24427036.js"><link rel="prefetch" href="/assets/js/24.f024c1da.js"><link rel="prefetch" href="/assets/js/25.6ec27adf.js"><link rel="prefetch" href="/assets/js/26.6d25719f.js"><link rel="prefetch" href="/assets/js/27.db20f982.js"><link rel="prefetch" href="/assets/js/28.ec73571f.js"><link rel="prefetch" href="/assets/js/29.f27545de.js"><link rel="prefetch" href="/assets/js/3.f1c19b2b.js"><link rel="prefetch" href="/assets/js/4.aab09496.js"><link rel="prefetch" href="/assets/js/5.869e58a5.js"><link rel="prefetch" href="/assets/js/6.b9eaa4b1.js"><link rel="prefetch" href="/assets/js/7.27bc636d.js"><link rel="prefetch" href="/assets/js/9.ccc6d1ea.js">
<link rel="stylesheet" href="/assets/css/0.styles.5852889d.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">Cake17's Blog</span></a> <div class="links" style="max-width:nullpx;"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Dev</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/backend/2013-03-17-contributing-to-cakephp-docs.html" class="nav-link">Backend (PHP)</a></li><li class="dropdown-item"><!----> <a href="/frontend/2015-03-30-grunt-gulp.html" class="nav-link">Frontend (HTML, CSS, Javascript, ...)</a></li><li class="dropdown-item"><!----> <a href="/devtools/2014-10-15-ssh-keys.html" class="nav-link">Tools</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Others</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/macos/2014-10-25-install-os-x.html" class="nav-link">MAC OS</a></li><li class="dropdown-item"><!----> <a href="/2015-07-25-nombres-binaires-informatiques.html" class="nav-link">General</a></li></ul></div></div><div class="nav-item"><a href="/2014-09-16-list-of-projects.html" class="nav-link">Projects</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Dev</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/backend/2013-03-17-contributing-to-cakephp-docs.html" class="nav-link">Backend (PHP)</a></li><li class="dropdown-item"><!----> <a href="/frontend/2015-03-30-grunt-gulp.html" class="nav-link">Frontend (HTML, CSS, Javascript, ...)</a></li><li class="dropdown-item"><!----> <a href="/devtools/2014-10-15-ssh-keys.html" class="nav-link">Tools</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Others</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/macos/2014-10-25-install-os-x.html" class="nav-link">MAC OS</a></li><li class="dropdown-item"><!----> <a href="/2015-07-25-nombres-binaires-informatiques.html" class="nav-link">General</a></li></ul></div></div><div class="nav-item"><a href="/2014-09-16-list-of-projects.html" class="nav-link">Projects</a></div> <!----></nav> <ul class="sidebar-links"><li><a href="/2015-07-25-markup-languages.html" class="sidebar-link">Markup Languages</a></li><li><a href="/2015-07-25-nombres-binaires-informatiques.html" class="sidebar-link">Nombre binaires en informatique</a></li><li><a href="/2014-10-20-gandi-simple-hosting.html" class="active sidebar-link">Gandi Simple Hosting</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/2014-10-20-gandi-simple-hosting.html#jekyll-configuration" class="sidebar-link">Jekyll Configuration</a></li><li class="sidebar-sub-header"><a href="/2014-10-20-gandi-simple-hosting.html#backup" class="sidebar-link">Backup</a></li><li class="sidebar-sub-header"><a href="/2014-10-20-gandi-simple-hosting.html#logs" class="sidebar-link">Logs</a></li><li class="sidebar-sub-header"><a href="/2014-10-20-gandi-simple-hosting.html#cron-tabs" class="sidebar-link">Cron tabs</a></li></ul></li><li><a href="/2016-06-07-rooter-android-galaxy-s4.html" class="sidebar-link">Tips for Android</a></li></ul> </div> <div class="page"> <div class="content"><p>Gandi Simple Hosting is a website that is really nice for people who don't want to update themselves tools like MySQL, PHP versions, etc... on their remote. I'm one of them and I really like the easy way provided by Gandi to host web pages for a reasonnable price.</p> <p>But, as you don't control everything that is installed on the server, there is sometimes limitations. I will try to overpass them and give some tips when i encountered them.</p> <h2 id="jekyll-configuration"><a href="#jekyll-configuration" aria-hidden="true" class="header-anchor">#</a> Jekyll Configuration</h2> <p>If you want to use Jekyll static pages, do the following in config.yml:</p> <div class="language-vim extra-class"><pre class="language-vim"><code><span class="token keyword">source</span><span class="token punctuation">:</span> <span class="token string">"./_source"</span>
destination<span class="token punctuation">:</span> <span class="token string">"./htdocs"</span>
</code></pre></div><p>And then build locally your website and push everything in the remote. All your source files you can change will be in <code>/_source</code> and the static html pages will be in <code>/htdocs</code>.
That way, you keep all files in git and can push everything in gandi remote.</p> <p>To deploy you can use traditionnal <code>ssh {login}@git.{datacenter_location}.gpaas.net 'deploy {vhost}.git</code> to deploy</p> <h2 id="backup"><a href="#backup" aria-hidden="true" class="header-anchor">#</a> Backup</h2> <h2 id="logs"><a href="#logs" aria-hidden="true" class="header-anchor">#</a> Logs</h2> <h2 id="cron-tabs"><a href="#cron-tabs" aria-hidden="true" class="header-anchor">#</a> Cron tabs</h2></div> <div class="page-edit"><!----> <!----></div> <div class="page-nav"><p class="inner"><span class="prev">
←
<a href="/2015-07-25-nombres-binaires-informatiques.html" class="prev">
Nombre binaires en informatique
</a></span> <span class="next"><a href="/2016-06-07-rooter-android-galaxy-s4.html">
Tips for Android
</a>
→
</span></p></div> </div> <!----></div></div>
<script src="/assets/js/app.e0c4edb2.js" defer></script><script src="/assets/js/8.ea5ae0d2.js" defer></script>
</body>
</html>