Pure pragmatic ASP.NET 5 front end workflow stack
For updates, read changelog
- Uses Mono 3.12.0 and up with ruthanet_deploy ansible / vagrant machine
- ASP.NET 5 / ASP.NET MVC 6
rutha-dotnet-grunt-tasks
frontend tasks
- Create folder e.g. my_disrupting_dotcom
- Clone to
my_app_name
dir - Clone ruthanet_deploy to
my_app_env
dir - Configure Vagrantfile in
my_app_env
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "~/Code/rutha.net", "/home/vagrant/repos/rutha.net"
- Configure Gruntfile in
my_app_name
dir
data: {
deploySettings: {
ruthaDeploy: '/home/rutha_user/rutha_deploy',
playbook: '/home/rutha_user/provisioning/playbook.yml',
hosts: {
production: {
name: 'aws',
sshKey: '/home/rutha_user/site.pem',
remoteUser: 'app'
},
staging: {
name: 'azure',
sshKey: '/home/rutha_user/staging.pem',
remoteUser: 'app'
},
vagrant: {
name: 'all',
remoteUser: 'vagrant'
}
}
},
}
- Run
vagrant up
inmy_app_env
dir or preferablygrunt stagelocal
inmy_app_name
dir - Run
vagrant ssh
into ruthanet_deploy
- Either run
./setup_kvm.sh
or commands below
- Run
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/kvminstall.sh | sh && source ~/.kre/kvm/kvm.sh
- Install latest kpm with
kvm upgrade
- Why kvm dev edition ? Read http://www.robzhu.com/blog/2014/12/7/to-run-aspnet-vnext-on-docker
grunt serve
: serves k kestrel and watches for changesnpm start
: Runs k kestrel without watching CSS and JS changeskpm restore
: Restore packages
- Install dependencies with
npm install
(which runskpm restore
as a postinstall script) - Run apps with
grunt serve
- Go to http://192.168.88.88:3002/
Try
export KRE_FEED="https://www.nuget.org/api/v2"
rm -rf ~/.k/runtimes/
kvm install 1.0.0-beta2
Maintain by Rogelio Morrell C.
Feel free to fork.