To create a new Rails project, you have to follow a few steps.
-
git clone https://github.com/phansch/.git new_project && cd new_project
Wherenew_project
is the name of your project. - Run
bin/install_base
- Run
bin/setup
- Update
config/locales/en.yml
for development URLs - Remove this part of the README
For development and testing you will need to setup your own postgres user:
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib libpq-dev
When the installation is done, login to the postgres user and access the postgresql shell.
sudo su - postgres
psql
Give the postgres user a new password:
\password postgres
Enter new password:
Next, create a new role named 'rails-dev' for the rails development with the command below:
create role rails_dev with createdb login password 'aqwe123';
Finally, setup your config/database.yml
cp config/database.example.yml config/database.yml
Fill in your chosen password and then run bin/setup
Run rspec spec
.
You can use guard
during development to only run the tests for files that have been modified.
Each time the master branch is pushed to heroku, the app is deployed again.
-
Ruby version
-
Configuration
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)