diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Vagrantfile | 71 | ||||
-rwxr-xr-x | install/index.php | 4 | ||||
-rwxr-xr-x | themes/baggy/tags.twig | 4 |
4 files changed, 77 insertions, 5 deletions
@@ -4,4 +4,5 @@ vendor | |||
4 | composer.phar | 4 | composer.phar |
5 | db/poche.sqlite | 5 | db/poche.sqlite |
6 | inc/poche/config.inc.php | 6 | inc/poche/config.inc.php |
7 | inc/3rdparty/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer/ \ No newline at end of file | 7 | inc/3rdparty/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer/ |
8 | .vagrant \ No newline at end of file | ||
diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 00000000..221ad6db --- /dev/null +++ b/Vagrantfile | |||
@@ -0,0 +1,71 @@ | |||
1 | |||
2 | $script_sqlite = <<SCRIPT | ||
3 | apt-get update | ||
4 | apt-get install -y apache2 php5 php5-sqlite php5-xdebug | ||
5 | apt-get clean -y | ||
6 | echo "ServerName localhost" >> /etc/apache2/apache2.conf | ||
7 | service apache2 restart | ||
8 | rm -f /var/www/html/index.html | ||
9 | date > /etc/vagrant_provisioned_at | ||
10 | SCRIPT | ||
11 | |||
12 | $script_mysql = <<SCRIPT | ||
13 | export DEBIAN_FRONTEND=noninteractive | ||
14 | apt-get update | ||
15 | apt-get install -y apache2 php5 php5-mysql php5-xdebug mysql-server mysql-client | ||
16 | apt-get clean -y | ||
17 | echo "ServerName localhost" >> /etc/apache2/apache2.conf | ||
18 | service apache2 restart | ||
19 | service mysql restart | ||
20 | echo "create database wallabag;" | mysql -u root | ||
21 | rm -f /var/www/html/index.html | ||
22 | date > /etc/vagrant_provisioned_at | ||
23 | SCRIPT | ||
24 | |||
25 | $script_postgres = <<SCRIPT | ||
26 | export DEBIAN_FRONTEND=noninteractive | ||
27 | apt-get update | ||
28 | apt-get install -y apache2 php5 php5-pgsql php5-xdebug postgresql postgresql-contrib | ||
29 | apt-get clean -y | ||
30 | echo "ServerName localhost" >> /etc/apache2/apache2.conf | ||
31 | service apache2 restart | ||
32 | service postgresql restart | ||
33 | rm -f /var/www/html/index.html | ||
34 | date > /etc/vagrant_provisioned_at | ||
35 | SCRIPT | ||
36 | |||
37 | Vagrant.configure("2") do |config| | ||
38 | |||
39 | config.vm.define "sqlite" do |m| | ||
40 | m.vm.box = "ubuntu/trusty64" | ||
41 | m.vm.provision "shell", inline: $script_sqlite | ||
42 | m.vm.synced_folder ".", "/var/www/html", owner: "www-data", group: "www-data" | ||
43 | end | ||
44 | |||
45 | config.vm.define "mysql" do |m| | ||
46 | m.vm.box = "ubuntu/trusty64" | ||
47 | m.vm.provision "shell", inline: $script_mysql | ||
48 | m.vm.synced_folder ".", "/var/www/html", owner: "www-data", group: "www-data" | ||
49 | end | ||
50 | |||
51 | config.vm.define "postgres" do |m| | ||
52 | m.vm.box = "ubuntu/trusty64" | ||
53 | m.vm.provision "shell", inline: $script_postgres | ||
54 | m.vm.synced_folder ".", "/var/www/html", owner: "www-data", group: "www-data" | ||
55 | end | ||
56 | |||
57 | config.vm.define "debian7" do |m| | ||
58 | m.vm.box = "chef/debian-7.6" | ||
59 | m.vm.provision "shell", inline: $script_sqlite | ||
60 | m.vm.synced_folder ".", "/var/www", owner: "www-data", group: "www-data" | ||
61 | end | ||
62 | |||
63 | config.vm.define "debian6" do |m| | ||
64 | m.vm.box = "chef/debian-6.0.10" | ||
65 | m.vm.provision "shell", inline: $script_sqlite | ||
66 | m.vm.synced_folder ".", "/var/www", owner: "www-data", group: "www-data" | ||
67 | end | ||
68 | |||
69 | config.vm.network :forwarded_port, guest: 80, host: 8003 | ||
70 | #config.vm.network "public_network", :bridge => "en0: Wi-Fi (AirPort)" | ||
71 | end | ||
diff --git a/install/index.php b/install/index.php index b27200a8..fee063bb 100755 --- a/install/index.php +++ b/install/index.php | |||
@@ -290,7 +290,7 @@ php composer.phar install</code></pre></li> | |||
290 | <li><label for="mysql_server">Server</label> <input type="text" placeholder="localhost" id="mysql_server" name="mysql_server" /></li> | 290 | <li><label for="mysql_server">Server</label> <input type="text" placeholder="localhost" id="mysql_server" name="mysql_server" /></li> |
291 | <li><label for="mysql_database">Database</label> <input type="text" placeholder="wallabag" id="mysql_database" name="mysql_database" /></li> | 291 | <li><label for="mysql_database">Database</label> <input type="text" placeholder="wallabag" id="mysql_database" name="mysql_database" /></li> |
292 | <li><label for="mysql_user">User</label> <input type="text" placeholder="user" id="mysql_user" name="mysql_user" /></li> | 292 | <li><label for="mysql_user">User</label> <input type="text" placeholder="user" id="mysql_user" name="mysql_user" /></li> |
293 | <li><label for="mysql_password">Password</label> <input type="text" placeholder="p4ssw0rd" id="mysql_password" name="mysql_password" /></li> | 293 | <li><label for="mysql_password">Password</label> <input type="password" placeholder="p4ssw0rd" id="mysql_password" name="mysql_password" /></li> |
294 | </ul> | 294 | </ul> |
295 | </li> | 295 | </li> |
296 | <li> | 296 | <li> |
@@ -299,7 +299,7 @@ php composer.phar install</code></pre></li> | |||
299 | <li><label for="pg_server">Server</label> <input type="text" placeholder="localhost" id="pg_server" name="pg_server" /></li> | 299 | <li><label for="pg_server">Server</label> <input type="text" placeholder="localhost" id="pg_server" name="pg_server" /></li> |
300 | <li><label for="pg_database">Database</label> <input type="text" placeholder="wallabag" id="pg_database" name="pg_database" /></li> | 300 | <li><label for="pg_database">Database</label> <input type="text" placeholder="wallabag" id="pg_database" name="pg_database" /></li> |
301 | <li><label for="pg_user">User</label> <input type="text" placeholder="user" id="pg_user" name="pg_user" /></li> | 301 | <li><label for="pg_user">User</label> <input type="text" placeholder="user" id="pg_user" name="pg_user" /></li> |
302 | <li><label for="pg_password">Password</label> <input type="text" placeholder="p4ssw0rd" id="pg_password" name="pg_password" /></li> | 302 | <li><label for="pg_password">Password</label> <input type="password" placeholder="p4ssw0rd" id="pg_password" name="pg_password" /></li> |
303 | </ul> | 303 | </ul> |
304 | </li> | 304 | </li> |
305 | </ul> | 305 | </ul> |
diff --git a/themes/baggy/tags.twig b/themes/baggy/tags.twig index 9bb93a45..65930eb2 100755 --- a/themes/baggy/tags.twig +++ b/themes/baggy/tags.twig | |||
@@ -1,5 +1,5 @@ | |||
1 | {% extends "layout.twig" %} | 1 | {% extends "layout.twig" %} |
2 | {% block title %}tags{% endblock %} | 2 | {% block title %}Tags{% endblock %} |
3 | {% block menu %} | 3 | {% block menu %} |
4 | {% include '_menu.twig' %} | 4 | {% include '_menu.twig' %} |
5 | {% endblock %} | 5 | {% endblock %} |
@@ -10,4 +10,4 @@ | |||
10 | </li> | 10 | </li> |
11 | {% endfor %} | 11 | {% endfor %} |
12 | </ul> | 12 | </ul> |
13 | {% endblock %} \ No newline at end of file | 13 | {% endblock %} |