Skip to content

Commit 4f00b07

Browse files
committed
Twill app - running
1 parent b521f37 commit 4f00b07

File tree

106 files changed

+25413
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+25413
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_size = 2

.env.example

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
LOG_CHANNEL=stack
8+
9+
DB_CONNECTION=mysql
10+
DB_HOST=127.0.0.1
11+
DB_PORT=3306
12+
DB_DATABASE=homestead
13+
DB_USERNAME=homestead
14+
DB_PASSWORD=secret
15+
16+
BROADCAST_DRIVER=log
17+
CACHE_DRIVER=file
18+
QUEUE_CONNECTION=sync
19+
SESSION_DRIVER=file
20+
SESSION_LIFETIME=120
21+
22+
REDIS_HOST=127.0.0.1
23+
REDIS_PASSWORD=null
24+
REDIS_PORT=6379
25+
26+
MAIL_DRIVER=smtp
27+
MAIL_HOST=smtp.mailtrap.io
28+
MAIL_PORT=2525
29+
MAIL_USERNAME=null
30+
MAIL_PASSWORD=null
31+
MAIL_ENCRYPTION=null
32+
33+
AWS_ACCESS_KEY_ID=
34+
AWS_SECRET_ACCESS_KEY=
35+
AWS_DEFAULT_REGION=us-east-1
36+
AWS_BUCKET=
37+
38+
PUSHER_APP_ID=
39+
PUSHER_APP_KEY=
40+
PUSHER_APP_SECRET=
41+
PUSHER_APP_CLUSTER=mt1
42+
43+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
44+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/vendor
6+
/.idea
7+
/.vscode
8+
/nbproject
9+
/.vagrant
10+
Homestead.json
11+
Homestead.yaml
12+
npm-debug.log
13+
yarn-error.log
14+
.env
15+
.phpunit.result.cache
16+
17+
public/assets/admin
18+
public/mix-manifest.json
19+
public/hot
20+
public/dist

Homestead.yaml.example

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ip: 192.168.10.44
2+
memory: 2048
3+
cpus: 1
4+
provider: virtualbox
5+
authorize: ~/.ssh/id_rsa.pub
6+
keys:
7+
- ~/.ssh/id_rsa
8+
folders:
9+
- map: INSERT_YOUR_CODEBASE_DIRECTORY
10+
to: /home/vagrant/code
11+
sites:
12+
- map: my-blog.dev.a17.io
13+
to: '/home/vagrant/code/public'
14+
- map: admin.my-blog.dev.a17.io
15+
to: '/home/vagrant/code/public'
16+
databases:
17+
- homestead
18+
name: my-blog
19+
hostname: my-blog

Vagrantfile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
require 'json'
5+
require 'yaml'
6+
7+
VAGRANTFILE_API_VERSION ||= "2"
8+
confDir = $confDir ||= File.expand_path("vendor/laravel/homestead", File.dirname(__FILE__))
9+
10+
homesteadYamlPath = File.expand_path("Homestead.yaml", File.dirname(__FILE__))
11+
homesteadJsonPath = File.expand_path("Homestead.json", File.dirname(__FILE__))
12+
afterScriptPath = "after.sh"
13+
customizationScriptPath = "user-customizations.sh"
14+
aliasesPath = "aliases"
15+
16+
require File.expand_path(confDir + '/scripts/homestead.rb')
17+
18+
Vagrant.require_version '>= 1.9.0'
19+
20+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
21+
if File.exist? aliasesPath then
22+
config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
23+
config.vm.provision "shell" do |s|
24+
s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases"
25+
end
26+
end
27+
28+
if File.exist? homesteadYamlPath then
29+
settings = YAML::load(File.read(homesteadYamlPath))
30+
elsif File.exist? homesteadJsonPath then
31+
settings = JSON::parse(File.read(homesteadJsonPath))
32+
else
33+
abort "Homestead settings file not found in " + File.dirname(__FILE__)
34+
end
35+
36+
Homestead.configure(config, settings)
37+
38+
if File.exist? afterScriptPath then
39+
config.vm.provision "shell", path: afterScriptPath, privileged: false, keep_color: true
40+
end
41+
42+
if File.exist? customizationScriptPath then
43+
config.vm.provision "shell", path: customizationScriptPath, privileged: false, keep_color: true
44+
end
45+
46+
if defined? VagrantPlugins::HostsUpdater
47+
config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
48+
end
49+
end

after.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
# If you would like to do some extra provisioning you may
4+
# add any commands you wish to this file and they will
5+
# be run after the Homestead machine is provisioned.
6+
#
7+
# If you have user-specific configurations you would like
8+
# to apply, you may also create user-customizations.sh,
9+
# which will be run after this script.

0 commit comments

Comments
 (0)