- Remove existing
.git
folder 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.rb
such asapplication_name
,repo_url
so on - Set correct IPs for the production and staging environment inside
config/deploy/production.rb
andconfig/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.rb
to 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 bundle
Run
$ gem update --system 2.6.11
$ rbenv rehash
$ bundle
$ bin/rake db:create db:migrate db:seed
This will set up the database and populate it with initial data.
Run the following:
bin/rails s
Or using foreman
:
foreman start web
lvh.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.yml
Or using foreman
:
foreman start worker
That's it.
- Make sure you've run
bin/rake db:migrate RAILS_ENV=test
- Running
bin/rake
will 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
.