Base project to easy server deployment for RoR.
It's dangerous to go alone! Read this!
- Common gems
- Base server with:
- Admin panel
- Login page with devise
- User Authorization
- Multitenancy
- User administration
url: TBD
http://localhost:3000/rails/info/routes
```heroku logs --tail```
```heroku config:set RAILS_ENV=test```
```heroku pg:reset -r heroku ```
```heroku run rake db:schema:load -r heroku```
```heroku run bash```
```bundle install --without nothing```
```heroku plugins:install https://github.com/naaman/heroku-vim```
```rm .bundler/config```
```heroku git:remote -a newname```
```bundle install --with development test```
```heroku ps```
```heroku ps:stop <pid> ``
Ruby 2.3.3
Rails 4.2.7.1
-
Install ruby project version with rbenv or rmv
-
Install bundler for this version
gem install bundler
-
Install postgres and add necessary local privileges
gem install pg
sudo -u postgres psql
ALTER USER root WITH SUPERUSER;
\q
-
Run postgres
postgres -D /usr/local/var/postgres
-
Run rails app
bundle install
rake db:create
rake db:migrate
rake db:seeds
```bundle exec puma```
TBD
```RAILS_ENV=test rake db:create```
```bundle exec rspec spec```
```export CODACY_PROJECT_TOKEN=<token>```
```export CODACY_RUN_LOCAL=true```
1. Do a merge from your feature branch with dev
2. Run tests
3. Run seeds
4. Check Codacy
5. Check your build on our CI server
1. Give a clear commit msg
2. Send a PR to your feature branch
rm -r bin/*
bundle exec rake rails:update:bin
ln -sfv /usr/local/opt/postgresql/*plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
/etc/postgresql/9.5/main/pg_hba.conf change from md5 to trust
sudo service postgresql restart
xcode-select --install
spring stop
heroku git:remote -a <app-name>
or
heroku git:remote -a <app-name>