Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}
Image title text: {{ node.field_name.title }}
Entity Reference path: {{ content.field_tags[0]['#url'] }}
[client] | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
[mysqld_safe] | |
socket = /var/run/mysqld/mysqld.sock | |
nice = 0 | |
[mysqld] | |
user = mysql |
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>3.0</version> | |
<date>2016-08-19T12:43:36Z</date> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
</groups> | |
<templates> |
<!DOCTYPE html> | |
<html lang="en"> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ajax test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0"> | |
<!-- css --> | |
<meta name="description" content="" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule . /index.html [L] |
--- | |
- name: Linux Create User and Upload User Public keys | |
hosts: test | |
#remote_user: xxxx | |
#sudo: yes | |
vars: | |
user_1: devuser | |
tasks: | |
- name: Make sure we have a 'wheel' group | |
group: |
--- | |
- hosts: all | |
tasks: | |
- name: ensure nginx is at the latest version | |
apt: name=nginx state=latest | |
become: yes | |
- name: start nginx | |
service: | |
name: nginx | |
state: started |
Each file should be put in /usr/local/vesta/data/templates/web/apache2
Then, when you edit your domain/site, you can change the web template to Drupal8 and just upload your whole project into public_html
<?php | |
namespace Database\Seeders; | |
use Illuminate\Database\Seeder; | |
use App\Models\Transaction; | |
class TransactionSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |