Skip to content

kmassada/laravel-angular

Repository files navigation

My project

Build Status

Laravel PHP Framework

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Angular Framework

Official Laravel Documentation

Documentation for the framework can be found on the Laravel website.

Official Angular Documentation

Documentation for the framework can be found on the Angular website.

PROJECT

This is a devops chapter.

  • Install Travis CLI tool gem install travis
  • Authenticate to your account travis login
  • Encrypt password and add it to .travis.yml file travis encrypt DEPLOY_KEY="encryption-password" --add
  • Encrypt deploy_id_rsa private RSA key file, that will be used for deploy openssl aes-256-cbc -k "encryption-password" -in deploy_id_rsa -out config/deploy_id_rsa_enc_travis -a

.travis.yml

after_success:

  • "openssl aes-256-cbc -k $DEPLOY_KEY -in config/deploy_id_rsa_enc_travis -d -a -out config/deploy_id_rsa"
  • "bundle exec cap deploy"

deploy.rb

set :ssh_options, keys: ["config/deploy_id_rsa"] if File.exist?("config/deploy_id_rsa")

[[ $TRAVIS_BRANCH = 'master' ]] && bundle exec cap deploy

gem install capistrano cap install set :application, "YourApplicationName" set :repository, "git@github.com:your-username/your-repository-name.git" set :deploy_to, "/path/to/your/app"

set :scm, :git set :branch, "master"

set :user, "bill" set :use_sudo, false set :deploy_via, :copy set :ssh_options, { :forward_agent => true, :port => 4321 } set :keep_releases, 5 server "www.example.com", :app, :web, :db, :primary => true

License

The Laravel framework is open-sourced software licensed under the MIT license

Credits LongList

About

stab at creating a project with laravel and serving views as angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published