Last active
September 9, 2019 08:28
-
-
Save supervoron1/e41c050cc1744dff3ee6e5306d720855 to your computer and use it in GitHub Desktop.
Revisions
-
supervoron1 revised this gist
Sep 9, 2019 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -59,4 +59,8 @@ rails new test-guru Additional reading: https://www.npmjs.com/package/@rails/webpacker#vue https://medium.com/@dirkdk/running-a-rails-app-with-webpacker-and-docker-8d29153d3446 ---- HOWTO kill process ps aux | grep rails kill -TERM PID (полученный из ps), если не помогло тогда kill -KILL PID -
supervoron1 revised this gist
Sep 8, 2019 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -55,4 +55,8 @@ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn ---- Launch new project rails new test-guru Additional reading: https://www.npmjs.com/package/@rails/webpacker#vue https://medium.com/@dirkdk/running-a-rails-app-with-webpacker-and-docker-8d29153d3446 -
supervoron1 revised this gist
Sep 8, 2019 . 1 changed file with 18 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,7 @@ rvm use 2.6.3 --default (если это не работает то перед source ~/.rvm/scripts/rvm либо просто добавить в .bash_profile: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* ----- Installing Rails ------ gem install rails (если это не работает то перед этим выполнить см ниже...) ## sudo apt-get install ruby-dev (помогло установить гемы, после это еще аз предыдущую команду) @@ -31,12 +32,27 @@ chown -R user:group /patch/foldername I've found that the default version of fileutils come with Ruby 2.5.* is 1.0.2 and the gem update command installs a another newer version 1.1.0. Therefore, there are two versions of fileutils are loaded $ gem update --default As a result, I got two default versions which can be seen by running $ gem list | grep fileutils ### Need to uninstall the fileutils gem first, then gem update with the default option. $ gem uninstall fileutils Successfully uninstalled fileutils-1.1.0 $ gem update --default Updating installed gems Updating fileutils Fetching: fileutils-1.1.0.gem (100%) Successfully installed fileutils-1.1.0 ---- Должен быть установлен node: По умолчанию стоял v8.10.0 (node -v) ---- Ставим webpack: https://webpack.js.org/guides/getting-started/ npm install --save-dev [email protected] (version optional) npm install --save-dev webpack-cli ---- Ставим yarn: https://yarnpkg.com/lang/en/docs/install/#debian-stable curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn ---- Launch new project rails new test-guru -
supervoron1 revised this gist
Sep 8, 2019 . 1 changed file with 17 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ----- Installing Ruby ------ http://rvm.io/ \curl -sSL https://get.rvm.io | bash -s stable --rails rvm list known @@ -8,7 +8,7 @@ rvm use 2.6.3 --default (если это не работает то перед source ~/.rvm/scripts/rvm либо просто добавить в .bash_profile: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* ----- Installing Rails ------ gem install rails (если это не работает то перед этим выполнить см ниже...) ## sudo apt-get install ruby-dev (помогло установить гемы, после это еще аз предыдущую команду) НО лучше все ставить через RVM @@ -25,4 +25,18 @@ x-исполнение. Все идет по порядку как я описал rwx rwx rwx. ### Смена пользователя chown user:group /patch/filename (chown dmitry:dmitry .bundle) только владелец папки, если -R все файлы по иерархии) chown -R user:group /patch/foldername ---- Dealing with two versions of gem at the same time ---- I've found that the default version of fileutils come with Ruby 2.5.* is 1.0.2 and the gem update command installs a another newer version 1.1.0. Therefore, there are two versions of fileutils are loaded $ gem update --default As a result, I got two default versions which can be seen by running $ gem list | grep fileutils ### Need to uninstall the fileutils gem first, then gem update with the default option. $ gem uninstall fileutils Successfully uninstalled fileutils-1.1.0 $ gem update --default Updating installed gems Updating fileutils Fetching: fileutils-1.1.0.gem (100%) Successfully installed fileutils-1.1.0 -
supervoron1 revised this gist
Sep 7, 2019 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,4 +22,7 @@ bundle install из папки с проектом (н-р test-guru) r-read w-write x-исполнение. Все идет по порядку как я описал rwx rwx rwx. ### Смена пользователя chown user:group /patch/filename (chown dmitry:dmitry .bundle) только владелец папки, если -R все файлы по иерархии) chown -R user:group /patch/foldername -
supervoron1 revised this gist
Sep 7, 2019 . 1 changed file with 10 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,16 @@ source ~/.rvm/scripts/rvm [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* ....Installing Rails.... gem install rails (если это не работает то перед этим выполнить см ниже...) ## sudo apt-get install ruby-dev (помогло установить гемы, после это еще аз предыдущую команду) НО лучше все ставить через RVM ## gem update --system можно иметь ввиду rails new test-guru (создание нового приложения test-guru) Автоматом создается структура папок и после этого запускается bundle install, который должен быть установлен, если нет, то bundle install из папки с проектом (н-р test-guru) Далее повторно запустить rails new test-guru и доустановить что было прервано ### https://losst.ru/gruppy-polzovatelej-linux группы пользователей Linux ### Расшифровывается так: сначала владелец rwx, затем группа rwx, и наконец остальные rwx. r-read w-write x-исполнение. Все идет по порядку как я описал rwx rwx rwx. -
supervoron1 created this gist
Sep 7, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ ....Installing Ruby.... http://rvm.io/ \curl -sSL https://get.rvm.io | bash -s stable --rails rvm list known rvm list rvm use 2.6.3 --default (если это не работает то перед этим выполнить см ниже...) /bin/bash --login source ~/.rvm/scripts/rvm либо просто добавить в .bash_profile: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* ....Installing Rails.... gem install rails (если это не работает то перед этим выполнить см ниже...) sudo apt-get install ruby-dev (помогло установить гемы, после это еще аз предыдущую команду) rails new test-guru (создание нового приложения test-guru) Автоматом создается структура папок и после этого запускается bundle install, который должен быть установлен, если нет, то bundle install из папки с проектом (н-р test-guru) Далее повторно запустить rails new test-guru и доустановить что было прервано