与设计师一起开发Rails应用程序



我目前正在使用RVM本地编程Rails应用程序。

现在我想要一个设计师加入我,为这个应用程序构建一些html代码,css和js。我不想让他学习所有的东西与捆绑器,更新数据库等,所以简单地分享一个git-repo不会做到这一点。

我的问题有简单的解决办法吗?

我总是用bash脚本来安装和更新我的Rails项目。

所以我可能有这个./script/install脚本:

#!/bin/bash
set -e # stop the script as soon as an error occurs
echo "--- Making sure bundler is installed"
gem which bundler &> /dev/null || gem install bundler --no-ri --no-rdoc
echo "--- Installing gems"
bundle check || bundle install
echo "--- Setting up the database"
bundle exec rake db:setup db:test:prepare
echo "--- Running tests to see if everying installed correctly"
bundle exec rspec spec
bundle exec cucumber features --profile all
echo "--- Everything installed correctly!"
echo "--- Run `rails server` to start the server!"

最难的部分确实是开发环境对于这样的人来说是流浪的。你在vagrant中设置所有内容,然后他下载它,并执行。

rails s

he is done:

http://railscasts.com/episodes/292-virtual-machines-with-vagrant

相关内容

最新更新