Clone Instrumental Template to a new app
How to clone Instrumental Template to a new app
If you're starting a totally fresh app and don't want to use Instrumental Template, then use these instructions instead. Otherwise, read on to use Instrumental Template for this new app.
Clone the Instrumental Template repo
git clone https://github.com/CasJam/instrumental-template.git new_app_nameCD to the new app
cd new_app_nameRemove the git repo
rm -rf .gitInitialize a new git repo
git initInitial commit
git add .
git commit "initial commit"Create GitHub Repository
In my CasJam Github account, create a new github repo here
Assuming you've already initiated git in the project folder, you now add the github repo as a remote and push to it (replace PROJECTNAME)
git remote add origin https://github.com/CasJam/PROJECTNAME.git
git push -u origin mainFind and replace the following terms:
Change these to the new app's name:
Instrumental Template
InstrumentalTemplate
instrumental_template
instrumental
Bundle Install
bundleCreate the db
rails db:createRun migrations
rails db:migrateConnect to database in TablePlus app
For the development database:
host: localhost 
username: (can leave blank) 
password: (can leave blank)
database_name: Find this in config/database.yml. It's probably projectname_development 
port: 5432 (leave it as default)
Run the server
./bin/devStart new Rails Credentials
If the cloned (new) app has files inside of config/credentials, then delete all of them. Then run:
EDITOR="nano" bin/rails credentials:edit --environment developmentEDITOR="nano" bin/rails credentials:edit --environment stagingEDITOR="nano" bin/rails credentials:edit --environment testEDITOR="nano" bin/rails credentials:edit --environment productionThat will open the "nano" editor in terminal, which you can use to save the credentials file for the first time. After that, use my commannds for editing rails credentials in Sublime, etc.
Last updated