This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM requires 7zip - https://www.7-zip.org/download.html | |
REM run this from the parent folder of the extension directory | |
REM excludes .git folder & other browser's manifest by default | |
REM change path to 7z.exe & the extension directory as needed | |
REM Firefox | |
rename "%CD%\extension\manifest-firefox.json" manifest.json | |
"%PROGRAMFILES%/7-zip/7z" a extension-firefox.zip .\extension\* -xr!.git -xr!manifest-chrome.json | |
rename "%CD%\extension\manifest.json" manifest-firefox.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "commit: $1 by: $2 $3" | |
cd your/git_rails/project_root #REPLACE THIS | |
git pull | |
if [ -f tmp/pids/server.pid ]; then | |
echo "killing rails server" | |
kill -9 $(cat tmp/pids/server.pid) | |
fi | |
bundle install | |
rails db:migrate RAILS_ENV=development |