Build assets on at compile time. No more static assets in the repo.
This commit is contained in:
committed by
James Brooks
parent
d00e413656
commit
307d07a80a
3
.bowerrc
3
.bowerrc
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"directory": "app/assets/bower_components"
|
||||
"directory": "app/assets/bower_components",
|
||||
"interactive": false
|
||||
}
|
||||
|
||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -9,11 +9,12 @@ config.codekit
|
||||
!.env.heroku.php
|
||||
!.env.example.php
|
||||
|
||||
# Assets development
|
||||
# Assets
|
||||
app/assets/bower_components
|
||||
node_modules
|
||||
public/css/
|
||||
public/js/
|
||||
public/build
|
||||
public/css
|
||||
public/js
|
||||
|
||||
# Packages
|
||||
npm-debug.log
|
||||
|
||||
@@ -8,7 +8,9 @@ php:
|
||||
|
||||
sudo: false
|
||||
|
||||
install: travis_retry composer install --no-interaction --prefer-source
|
||||
install: travis_retry composer install --no-interaction --no-scripts --prefer-source
|
||||
|
||||
before_script: php artisan cachet:one-click-deploy
|
||||
|
||||
script:
|
||||
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;'
|
||||
|
||||
4
app.json
4
app.json
@@ -16,9 +16,9 @@
|
||||
],
|
||||
"env": {
|
||||
"ENV": { "value": "heroku", "description": "Do not modify this value to work on Heroku" },
|
||||
"BUILDPACK_URL": { "value": "https://github.com/Scalingo/appsdeck-buildpack-php", "description": "Do not modify this value to work on Heroku" }
|
||||
"BUILDPACK_URL": { "value": "https://github.com/cachethq/cachet-buildpack", "description": "Do not modify this value to work on Heroku" }
|
||||
},
|
||||
"scripts": {
|
||||
"postdeploy": "php artisan migrate --env=heroku; php artisan key:generate"
|
||||
"postdeploy": "php artisan migrate --env=heroku; php artisan key:generate;"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => false,
|
||||
'debug' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -13,5 +13,8 @@
|
||||
"rivets": "0.7.*",
|
||||
"Sortable": "1.0.0",
|
||||
"animate-sass": "~0.6.2"
|
||||
},
|
||||
"resolutions": {
|
||||
"jquery": "~2.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,13 +50,17 @@
|
||||
"index-document": "index.php",
|
||||
"log-files": [
|
||||
"app/storage/logs/laravel.log"
|
||||
],
|
||||
"compile": [
|
||||
"bower install",
|
||||
"gulp"
|
||||
]
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-install-cmd": [
|
||||
"php artisan optimize",
|
||||
"chmod -R 755 app/storage",
|
||||
"chmod -R 777 app/storage public",
|
||||
"php artisan cachet:one-click-deploy"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
|
||||
2
composer.lock
generated
2
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "18f348e602f5894b0f1fd1189da5ba29",
|
||||
"hash": "14c7b597c27afa4b28ab9004271e1417",
|
||||
"packages": [
|
||||
{
|
||||
"name": "classpreloader/classpreloader",
|
||||
|
||||
@@ -37,6 +37,8 @@ $ cd Cachet
|
||||
$ composer install --no-dev -o
|
||||
```
|
||||
|
||||
If you don't want to compile the assets yet, you may want to run composer with the `--no-scripts` flag.
|
||||
|
||||
# Deploy to Heroku
|
||||
|
||||
When using the **Deploy to Heroku** button you needn't worry about using a database as the install will setup a free instance of ClearDB. Once installed Heroku can direct you to the setup page where you'll configure the site/application information and create an administrator account.
|
||||
@@ -76,8 +78,6 @@ return [
|
||||
'DB_USERNAME' => 'root',
|
||||
'DB_PASSWORD' => 'secret',
|
||||
];
|
||||
|
||||
?>
|
||||
```
|
||||
|
||||
> Even though SQLite doesn't require a host, username or password, these still must be set (an empty string will suffice).
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"gulp-rimraf": "~0.1.1",
|
||||
"laravel-elixir": "~0.9.1",
|
||||
"laravel-elixir-jshint": "~0.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bower": "1.3.12",
|
||||
"gulp": "^3.8.8",
|
||||
"gulp-rimraf": "0.1.1",
|
||||
"laravel-elixir": "*",
|
||||
"laravel-elixir-jshint": "0.1.6"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 326 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"css/all.css": "css/all-3c34adf6.css",
|
||||
"js/all.js": "js/all-8dfe8cf3.js"
|
||||
}
|
||||
Reference in New Issue
Block a user