This repo contains my full portfolio website, including the custom CMS. It is published as an example of my work. It includes continuous integration and delivery using Circle CI along with Capistrano (see the included configuration file)
NOTE: This application has been developed with Ruby version 2.2.1 and Rails version 4.2. Please ensure these are installed before installing and setting up the application.
$ git clone [email protected]:mattrayner/mattrayner.git
$ cd mattrayner
$ brew install node
$ curl -sL https://rpm.nodesource.com/setup | bash -
$ yum install -y nodejs
$ brew install imagemagick
$ yum install ImageMagick
$ cp .env.sample .env
Set up environment variables for all of the values in .env.sample and SECRET_KEY_BASE. If running passenger as root, use
$ nano /etc/profile
and add export commands to the bottom of the file.
Note: To update external API data in development, please ensure you fill in the .env file with applicable data.
Install all of the GEM dependencies with bundler:
$ bundle install
For development, set up the database user and databases
$ brew update
$ brew install mysql
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo yum localinstall mysql-community-release-el7-*.noarch.rpm
sudo yum install mysql-community-server
sudo chkconfig mysqld on
chkconfig --list mysqld
sudo yum install mysql-devel
$ bundle exec rake db:create db:setup db:seed
Ensure that the test suite successfully runs on your local machine:
$ bundle exec rake db:test:prepare && bundle exec rspec
Finally, launch the application:
$ bundle exec rails s
You should now be able to see a local version of the project at http://localhost:3000. You can access the admin panel at http://localhost:3000/admin
This application can be found at http://mattrayner.uk running the master branch code base.
You can see a DEVELOPMENT version of this project at http://dev.mattrayner.uk/ THE DEVELOPMENT SERVICE MAY NOT BE AVAILABLE 100% OF THE TIME
If you wish to submit a bug fix, you can create a pull request and it will be merged pending a code review.
- Clone it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
If you have a feature request please submit an issue and it will be prioritised.