-
Notifications
You must be signed in to change notification settings - Fork 49
Deploy with Heroku
JP Barbosa edited this page May 28, 2016
·
9 revisions
nano composer.json
...
"scripts": {
...
"compile": [
"./node_modules/.bin/bower install",
"./node_modules/.bin/gulp --production"
]
},
...
composer update
nano Procfile
web: vendor/bin/heroku-php-apache2 public/
worker: php artisan queue:listen
git add .
git commit -m "Add deploy with Heroku"
heroku create
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-php
heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-nodejs
export HOST_NAME_HEROKU=`heroku domains | grep herokuapp.com`
open https://www.google.com/recaptcha/admin#list
heroku addons:create heroku-postgresql:hobby-dev
heroku addons:create heroku-redis:hobby-dev
heroku config:get DATABASE_URL
heroku config:get REDIS_URL
source .env
heroku config:set \
APP_DEBUG=false \
APP_ENV=production \
APP_KEY=$APP_KEY \
APP_LOG=errorlog \
APP_URL=http://$HOST_NAME_HEROKU \
CACHE_DRIVER=$CACHE_DRIVER \
HOST_NAME=$HOST_NAME_HEROKU \
DB_CONNECTION=pgsql \
DB_DATABASE= \
DB_HOST= \
DB_PASSWORD= \
DB_USERNAME= \
MAIL_DRIVER=$MAIL_DRIVER \
MAIL_HOST=$MAIL_HOST \
MAIL_PORT=$MAIL_PORT \
MAIL_USERNAME=$MAIL_USER \
MAIL_PASSWORD=$MAIL_PASS \
MAIL_ADDRESS=$MAIL_ADDRESS \
MAIL_NAME="$MAIL_NAME" \
QUEUE_DRIVER=$QUEUE_DRIVER \
RECAPTCHA_PUBLIC_KEY=$RECAPTCHA_PUBLIC_KEY \
RECAPTCHA_PRIVATE_KEY=$RECAPTCHA_PRIVATE_KEY \
REDIS_HOST= \
REDIS_PASSWORD= \
REDIS_PORT= \
SESSION_DRIVER=$SESSION_DRIVER \
WEATHER_APPID=$WEATHER_APPID
git push heroku master
heroku run php artisan migrate
heroku ps:scale worker=1
heroku addons:create scheduler:standard
heroku addons:open scheduler
php artisan schedule:run
heroku open
heroku addons:create papertrail
heroku addons:open papertrail
Next step: Deploy with Forge
- Setup
- Basic CRUD
- Validation
- Views
- Association
- Association Controller
- Association Views
- Basic Template
- Bootstrap
- Bootstrap CRUD
- Alerts
- Welcome Page
- Ajax CRUD
- Send Email
- Send Email Views
- Jobs Queue
- Captcha
- Async External Content
- Cached External Content
- Tests Setup
- Functional Tests
- Acceptance Tests
- Continuous Integration
- Deploy with Heroku
- Deploy with Forge
- Update README