- Remove existing
.gitfolder viarm -rf .git - Initiate new repo via
git init - Add and commit all files
git add .andgit commit -m "Initial import from billet" - Add remote repository:
git remote add origin REPO_URL - Push the repo
git push -u origin master
- Rename module application in
config/application.rb - Rename default database for development and test in
config/database.yml - Rename name of session store in
config/initializers/session_store.rb
- Make required changes into the
config/deploy.rbsuch asapplication_name,repo_urlso on - Set correct IPs for the production and staging environment inside
config/deploy/production.rbandconfig/deploy/staging.rb
- Rename application and and other project based config values in
config/settings.yml - Rename application name
config/newrelic.yml - Rename application in the first line of
README.md - Add description to the 'Synopsis' section
- Change production domain in 'Synopsis' section
- Edit
db/seed.rbto fill database automaticaly (especially email of single user)
- This documentation is not required for your project, thus just remove section 'How to use it'
Describe your project here
- Production site: https://example.com
Install another dependencies from Brewfile via
$ brew bundleRun
$ gem update --system 2.6.11
$ rbenv rehash
$ bundle
$ bin/rake db:create db:migrate db:seedThis will set up the database and populate it with initial data.
Run the following:
bin/rails sOr using foreman:
foreman start weblvh.me is the default domain, configured in example
configuration files. Use lvh.me:3000 and its subdomains
to access the application in development.
In addition, to run the background jobs process run the following:
./bin/sidekiq -C config/sidekiq.ymlOr using foreman:
foreman start workerThat's it.
- Make sure you've run
bin/rake db:migrate RAILS_ENV=test - Running
bin/rakewill run unit tests, then, if all pass, run acceptance tests - We do unit testing with rspec. To run just unit tests run
bin/rake spec. To run a single one, runbundle exec rspec spec/path/to/spec.rb.