LoginSignup
0
0

More than 1 year has passed since last update.

ターミナル

Posted at

620 cd /var/www
621 cd
622 cd /var
623 sudo chmod 755 www
624 cd www/
625 sudo git clone https://github.com/jojo232/cloud9.git
626 ls
627 cd cloud9
628 gem install bubler
629 gem install bundler
630 vim .gemrc
631 cd
632 vim .gemrc
633 rails -v
634 ruby -v
635 gem install rails -v 6.1.4
636 cd /var/www/cloud9
637 bundle install
638 sudo chown ec2-user:ec2-user .
639 bundle install
640 sudo chown -R ec2-user:ec2-user .
641 bundle install
642 cd
643 ls
644 cd /var/www
645 cd jojorion/
646 EDITOR=vim bin/rails credentials:edi
647 EDITOR=vim bin/rails credentials:edit
648 vim config/master.key
649 RAILS_ENV=poroduction bundle exec rails db:create
650 ls
651 vi Dockerfile
652 cd config
653 ls
654 rm -rf secrets.yml
655 ls
656 rm -rf credentials.yml.enc
657 ls
658 rm -rf master.key
659 ls
660 vi database.yml
661 cd
662 cd /var/www/jojorion
663 RAILS_ENV=poroduction bundle exec rails db:create
664 EDITOR=vim bin/rails credentials:edit
665 RAILS_ENV=poroduction bundle exec rails db:create
666 vim config/master.key
667 RAILS_ENV=poroduction bundle exec rails db:create
668 cd
669 cd /var/www/cloud9
670 ls
671 bundle exec rails webpacker:install
672 EDITOR=vim bin/rails credentials:edit
673 bundle install
674 exit
675 cd /var/www
676 cd
677 cd /var
678 sudo chmod 755 www
679 cd cloud9
680 cd www/cloud9
681 bundle install
682 sudo chown -R ec2-user:ec2-user .
683 bundle install
684 cd /var/www/jojorion
685 ls -ltr config/
686 docker ps
687 cd
688 docker ps
689 sudo yum update
690 sudo yum update -y
691 sudo amazon-linux-extras install -y docker
692 amazon-linux-extras | grep docker
693 sudo systemctl start docker
694 systemctl status docker
695 sudo systemctl enable docker
696 systemctl is-enabled docker
697 grep docker /etc/group
698 sudo usermod -a -G docker ec2-user
699 exit
700 docker info
701 VER=1.29.2
702 $ sudo curl -L https://github.com/docker/compose/releases/download/${VER}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
703 $sudo curl -L https://github.com/docker/compose/releases/download/${VER}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
704 sudo chmod +x /usr/local/bin/docker-compose
705 sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
706 docker-compose --version
707 cd /var/www/jojorion
708 RAILS_ENV=production bundle exec rails db:create
709 cd
710 cd /var
711 sudo shmod 755 www
712 sudo chmod 755 www
713 cd /www
714 cd www/
715 jojorion
716 cd jojorion
717 RAILS_ENV=production bundle exec rails db:create
718 ls -ltr config/
719 cd config
720 ls
721 vi master.key
722 rm -rf master.key
723 ls
724 cd
725 cd /var
726 sudo chmod 755 www
727 cd /www
728 cd www/
729 cd jojorion/
730 sudo chown -R ec2-user .
731 sudo chown ec2-user:ec2-user .
732 EDITOR=vim bin/rails credentials:edit
733 cd config
734 ls
735 vi master.key
736 cd
737 cd /var
738 sudo chmod 755 www
739 cd www/
740 cd jojorion/
741 RAILS_ENV=production bundle exec rails db:create
742 ls -ltr config/
743 cd
744 ls
745 ls -a
746 cd /var
747 cd /www/
748 cd www/
749 ls
750 cd cloud9
751 RAILS_ENV=production bundle exec rails db:create
752 budle install
753 bundle install
754 sudo yum -y install gcc make openssl-devel readline-devel sqlite-devel gcc-c++
755 bundle install
756 gcc --version
757 bundle install
758 cd /var
759 /
760 cd www/jojorion
761 cd
762 cd
763 cd /var/www/cloud9
764 bundle install
765 cd
766 cd /var/www/cloud9
767 cd
768 cd /var/www/jojorion
769 cdbcofig
770 cd config
771 ls
772 cd credentials
773 ls
774 cd /var/www/jojorion/config

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"EDITOR=vi" [新] 0,0-1 全て
775 vicredentials.yml.enc
776 vi credentials.yml.enc
777 cd
778 cd /var/www/cloud9
779 bundle install
780 sudo chown -R ec2-user .
781 bundle install
782 history
[ec2-user@ip-10-0-8-195 cloud9]$ sudo yum -y install gcc make openssl-devel readline-devel sqlite-devel gcc-c++
読み込んだプラグイン:extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
51 packages excluded due to repository priority protections
パッケージ gcc-7.3.1-14.amzn2.x86_64 はインストール済みか最新バージョンです
パッケージ 1:make-3.82-24.amzn2.x86_64 はインストール済みか最新バージョンです
パッケージ 1:openssl-devel-1.0.2k-24.amzn2.0.2.x86_64 はインストール済みか最新バージョンです
パッケージ readline-devel-6.2-10.amzn2.0.2.x86_64 はインストール済みか最新バージョンです
パッケージ sqlite-devel-3.7.17-8.amzn2.1.1.x86_64 はインストール済みか最新バージョンです
パッケージ gcc-c++-7.3.1-14.amzn2.x86_64 はインストール済みか最新バージョンです
何もしません
[ec2-user@ip-10-0-8-195 cloud9]$ EDITOR=vim bin/rails credentials:edit
Could not find sassc-2.4.0 in any of the sources

~
~
~
~
~
~
~
~
~
~
~
~
~
~
"EDITOR=vi" [新] 0,0-1 全て
Run bundle install to install missing gems.
[ec2-user@ip-10-0-8-195 cloud9]$ cd
[ec2-user@ip-10-0-8-195 ~]$ cd /var/www/jojorion
[ec2-user@ip-10-0-8-195 jojorion]$ cd config
[ec2-user@ip-10-0-8-195 config]$ vi EDITOR="vi" bin/rails credentials:edit
3 個のファイルが編集を控えています
[ec2-user@ip-10-0-8-195 config]$ ls
application.rb credentials.yml.enc initializers routes.rb webpacker.yml
boot.rb database.yml locales spring.rb
cable.yml environment.rb master.key storage.yml
credentials environments puma.rb webpack
[ec2-user@ip-10-0-8-195 config]$ cd
[ec2-user@ip-10-0-8-195 ~]$ cd /var/www/jojorion
[ec2-user@ip-10-0-8-195 jojorion]$ vi EDITOR="vi" bin/rails credentials:edit
3 個のファイルが編集を控えています
[ec2-user@ip-10-0-8-195 jojorion]$ EDITOR="vi" bin/rails credentials:edit
Couldn't decrypt config/credentials.yml.enc. Perhaps you passed the wrong key?
[ec2-user@ip-10-0-8-195 jojorion]$
[ec2-user@ip-10-0-8-195 jojorion]$ EDITOR="vi" bin/rails credentials:edit
Couldn't decrypt config/credentials.yml.enc. Perhaps you passed the wrong key?
[ec2-user@ip-10-0-8-195 jojorion]$
[ec2-user@ip-10-0-8-195 jojorion]$ history
1 $ sudo yum -y install git make gcc-c++ patch libyaml-devel libffi-devel libicu-devel zlib-devel readline-devel libxml2-devel libxslt-devel ImageMagick ImageMagick-devel openssl-devel libcurl libcurl-devel curl
2 $ sudo yum -y update
3 sudo yum update
4 $ sudo yum -y install git make gcc-c++ patch libyaml-devel libffi-devel libicu-devel zlib-devel readline-devel libxml2-devel libxslt-devel ImageMagick ImageMagick-devel openssl-devel libcurl libcurl-devel curl
5 sudo yum -y install git make gcc-c++ patch libyaml-devel libffi-devel libicu-devel zlib-devel readline-devel libxml2-devel libxslt-devel ImageMagick ImageMagick-devel openssl-devel libcurl libcurl-devel curl
6 $ sudo curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
7 $sudo yum -y install nodejs
8 sudo curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
9 nove -v
10 sudo yum -y install nodejs
11 nove -v
12 node -v
13 sudo yum -y install wget
14 sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo
15 sudo yum -y install yarn
16 git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
17 echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
18 echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
19 source .bash_profile
20 git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
21 rbenv rehash
22 rbenv install 2.6.3
23 sudo yum -y install https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
24 sudo yum-config-manager –enable mysql80-community
25 mysql -v
26 sudo yum install mysql-community-server
27 sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
28 mysql -v
29 sudo yum install mysql-community-server
30 mysql -v
31 mysqld -v
32 mysql --version
33 history
34 ruby -v
35 Mysql --vervion
36 mysql --version
37 mysql -u admin -p -P 3306 -h raisetech-live8-2022database.crsw7ysdmznk.ap-northeast-1.rds.amazonaws.com
38 mysql -u admin -p -P 3306 -h raisetech-live8-2022database.crsw7ysdmznk.ap-northeast-1.rds.amazonaws.com
39 git --version
40 exit
41 ls
42 ls /var/
43 mkdir -p /var/www
44 sudo mkdir -p /var/www
45 cd /var/www/
46 git clone https://github.com/jojo232/railstech-yuya.git
47 ls -l www
48 sudo chmod 755 www
49 cd
50 cd var
51 cd ../
52 ls -l www
53 sudo chmod 755 www
54 cd
55 ls -l www
56 sudo chmod 755 www
57 git --version
58 ls
59 ls /var/
60 cd /var/www
61 ls
62 cd ../
63 ls -l www
64 sudo chmod 755 www
65 cd www/
66 sudo git clone https://github.com/jojo232/akita-onsen.git
67 ls
68 cd https://github.com/jojo232/akita-onsen.git
69 cd akita-onsen
70 gem install bundler
71 cd
72 touch .grmrc
73 vim .gemrc
74 gem install -v 6.1.4
75 gem install rails -v 6.1.4
76 rails --version
77 gem update --system
78 em install bundler
79 gem install bundler
80 cd /var/www/akita-onsen.git/
81 cd akita-onsen.git
82 cd /var/www/akita-onsen/
83 bundle install
84 gem install mysql2 -v
85 brew info openssl
86 sudo yum install mysql-devel
87 gem install mysql2
88 gem list mysql2
89 bundle install
90 cd akita-onsen
91 gem install ruby -v 6.1.4
92 cd /var/www/akita-onsen
93 bundle install
94 mysqld --version
95 git --version
96 ls
97 ls -a
98 ruby -v
99 rbenv global 2.6.3
100 rbenv rehash
101 ruby -v
102 ls
103 ls /var/
104 cd /var/ww
105 cd /var/www
106 ls
107 ls -a
108 cd akita-onsen/
109 gem install bundler
110 cd
111 vim .gemrc
112 gem install rails -v gem 6.1.4
113 gem install rails -v 6.1.4
114 cd /var/www/akita-onsen/
115 bundle install
116 history
117 bundler install
118 cd /var/www/
119 ls -l akita-onsen/
120 cd
121 cd /var/www/akita-onsen/
122 vim config/database.yml
123 sudo yum -y install gcc make openssl-devel readline-devel sqlite-devel gcc-c++
124 bundle exec rails webpacker:install
125 bundle install
126 sudo chown -R ec2-user:ec2-user .
127 ls -l
128 bunble install
129 bundle install
130 /Users/sasakiyuuya/Desktop/スクリーンショット\ 2022-05-29\ 13.41.04.png
131 RAILS_ENV=production bundle exec rails db:create
132 bundle install
133 cd /var/www/akita-onsen/
134 bundle install
135 cd /var/www/
136 ls
137 cd /akita-onsen/
138 cd akita-onsen
139 git rm akita-onse
140 git log
141 git rm jojo232
142 git remote
143 git remote -v
144 git rm https://github.com/jojo232/akita-onsen.git
145 git remote rm upstream
146 git status
147 git log -l
148 re -rf akita-onse
149 git rm jojo232/akita-onsen
150 git remote
151 git remote rm
152 git remote rm origin
153 git remote
154 cd
155 cd /var/www/akita-onsen
156 ls
157 ls -a
158 cd
159 rbenv install 2.5.3
160 rbenv glabal 2.5.3
161 rbenv global 2.5.3
162 rebenv rehashr
163 rbenv rehash
164 ruby -v
165 mysqld --version
166 git --version
167 ls /var/www
168 rm okita-onsen
169 rm -rf akita-onsen
170 ls
171 cd /var/www/
172 git clone https://github.com/jojo232/railstech.git
173 git clone https://github.com/jojo232/railstech.git
174 cd
175 cd /var/
176 ls -l www
177 rm -rf akita-onsen
178 ls
179 ls -l www
180 sudo chmod 755 www
181 cd www/
182 sudo git clone https://github.com/jojo232/railstech.git
183 ls
184 rm -r akita-onsen
185 rm file*
186 rm -r akita-onsen
187 chmod +w fuga
188 cd
189 ls
190 cd /var/www/
191 ls
192 cd /var/www/
193 chmod +w fuga
194 cd
195 chmod +w fuga
196 cd /var/www/
197 ls -l
198 rm akita-onsen
199 cd
200 re /var/www/akita-onsen/
201 rm /var/www/akita-onsen/
202 ls
203 ls -a
204 cd /var/www/
205 rm -r akita-onsen
206 cd railstech
207 gem install bundle
208 touch .gemrc
209 cd
210 touch .gemrc
211 vim
212 cd
213 cd okita-onsen
214 ls
215 cd /var/www/
216 ls
217 cd akita-onsen
218 vim .gemrc
219 cd
220 cd /var/www/
221 sudo rm -r akita-onsen
222 ls
223 cd
224 vim .gemrc
225 gem install rails -v 5.2.2
226 cd /var/www/
227 cd railstech/
228 bundle install
229 git --version
230 ls
231 cd /var/www/
232 ls
233 rm -r railstech
234 rm -rf railstech
235 ls
236 chmod 7555
237 cd
238 cd /var/
239 sudo chmod 755 www
240 cd www/
241 ls
242 rm -rf railstech
243 sudo git clone https://github.com/jojo232/jojorion.git
244 ls
245 cd jojorion
246 gem install bundler
247 cd
248 rbenv install 3.0.2
249 cd jojorion
250 cd /var/www/jojorion/
251 gem install bundler
252 ruby -v
253 gem install rails -v 6.1.4
254 bundle install
255 vi confing/database.yml
256 vi confing/database.yml/
257 vim config/database.yml
258 bundle exec rails webpacker:install
259 chmod 755 bundle exec rails webpacker:install
260 bundle exec rails webpacker:install
261 history
262 bundle exec rails webpacker:install
263 chmod 700 bundle exec rails webpacker:install
264 bundle exec rails webpacker:install
265 RAILS_ENV=production bundle exec rails db:create
266 EDITOR=vim bin/rails credentials:ebit
267 EDITOR=vim bin/rails credentials:edit
268 cd
269 ks
270 ls
271 cd jojorion
272 cd /var/www/jojorion
273 vim config/master.key
274 RAILS_ENV=production bundle exec rails db:create
275 RAILS_ENV=production bundle exec rails db:migrate
276 chmod 0664 /var/www/app/log/production.log
277 cd
278 chmod 0664 /var/www/jojorion/log/production.log
279 cd /var/www
280 cd jojorion
281 chmod 0664 /app/log/production.log
282 ls
283 cd app
284 ls
285 cd log
286 sudo chmod 0664 /app/log/production.log
287 cd
288 cd /var/www/jojorion
289 chmod 0664 /path/to/production.log
290 cd path
291 cd
292 chmod 777 jojorion
293 ls - www
294 cd /var/www
295 cd
296 cd /var
297 ls -l www
298 sudo chmod 755 www
299 cd www/
300 cd jojorion/
301 bundle exec rails webpacker:install
302 cd
303 histoury
304 history
305 cd /var
306 sudo chmod 755 www
307 cd /www
308 cd www/
309 sudo chown ec2-user:ec2-user jojorion/
310 ls
311 cd jojorion/
312 bundle exec rails webpacker:install
313 ls -a
314 sudo chown -R ec2-user /Users/ec2-user/.rbenv
315 sudo chown -R ec2-user /ec2-user/.rbenv
316 sudo chown -R ec2-user /ec2-user/.rbenv
317 cd /var/www
318 cd jojorion/
319 sudo usermod -a -G jojorion ec2-user
320 sudo chown -R ec2-user:jojorion /var/www
321 sudo chown ec2-user:ec2-user .
322 bundle exec rails webpacker:install
323 sudo chown ec2-user:ec2-user .
324 bundle exec rails webpacker:install
325 ls
326 RAILS_ENV=production bundle exec rails db:create
327 bundle exec rails webpacker:install
328 cls
329 ls
330 cd /log
331 cd log
332 vi development.log
333 ls
334 ls -a
335 touch development.log
336 sudo touch development.log
337 ls
338 vi development.log
339 cd
340 cd /var
341 sudo chmod 755 www
342 cd www/
343 cd jojorion/
344 bundle exec rails webpacker:install
345 sudo chown ec2-user:ec2-user .
346 bundle exec rails webpacker:install
347 vim /var/www/jojorion/log/development.log
348 sudo chown ec2-user:ec2-user .
349 bundle exec rails webpacker:install
350 cd
351 ls -a
352 whoami
353 sudo chown -R ec2-user .
354 ls -a
355 cd /var
356 sudo chmod 755 www
357 cd www/
358 cd jojorion/
359 sudo chown -R ec2-user .
360 bundle exec rails webpacker:install
361 ls
362 RAILS_ENV=production bundle exec rails db:create
363 vi Dockerfile
364 bundle exec rails webpacker:install
365 vi Dockerfile
366 RAILS_ENV=production bundle exec rails db:create
367 RAILS_ENV=production bundle exec rails db:migrate
368 nvm install --lt
369 npm install -g yarn
370 yarn
371 yarn install --ignore-engines
372 bundle exec rails webpacker:install
373 yarn install --ignore-engines
374 node -v
375 nodebrew ls-remote
376 RAILS_ENV=production bundle exec rails db:migrate
377 RAILS_ENV=production bundle exec rails db:create
378 rake secret
379 sudo vim /etc/environment
380 env | grep SECRET_KEY_BASE
381 RAILS_ENV=production bundle exec rails db:create
382 cd
383 sudo vim /etc/environment
384 cd /var
385 sudo chmod 755 www
386 cd www/
387 cd jojorion
388 cd bin
389 ls
390 touch secret_key_base
391 ls
392 vi secret_key_base
393 cd jojorion
394 cd
395 cd var/
396 cd /var
397 sudo chomd 755 www
398 sudo chmod 755 www
399 cd www/
400 cd jojorion/
401 RAILS_ENV=production bundle exec rails db:create
402 cd bin
403 ls
404 rm -rf secret_key_base
405 ls
406 touch railscredentials
407 vi railscredentials
408 RAILS_ENV=production bundle exec rails db:create
409 cd
410 cd /var/www/jojorion/
411 RAILS_ENV=production bundle exec rails db:create
412 cd bin
413 ls
414 rm rf railscredentials
415 rm -rf railscredentials
416 ls
417 cd
418 cd /var/www/jojorion
419 cd config
420 ls
421 touch secrets.yml
422 vi secrets.yml
423 cd
424 sudo chmod 755 www
425 cd /var
426 sudo chmod 755 www
427 cd jojorion
428 cd jojorion/
429 cd www/
430 cd jojorion
431 bundle exec rake secret
432 RAILS_ENV=production bundle exec rails db:create
433 cd
434 cd /var/www/
435 cd jojorion/
436 vi secrets.yml
437 cd config
438 ls
439 vi secrets.yml
440 history
441 sudo vim /etc/environment
442 cd
443 cd /var
444 sudo chmod 755 www
445 cd www/
446 cd jojorion
447 RAILS_ENV=production bundle exec rails db:create
448 cd log
449 ls
450 vi development.log
451 rm -rf development.log
452 ls
453 touch development
454 ls
455 cd
456 cd /var
457 sudo chmod 755 www
458 cd www/
459 cd jojorion/
460 RAILS_ENV=production bundle exec rails db:create
461 bundle exec rails webpacker:install
462 node -v
463 RAILS_ENV=production bundle exec rails db:create
464 ls -l /var/log/container/
465 ls
466 cd config
467 ls
468 vi secrets.yml
469 cd /
470 cd
471 cd /var/www/jojorion
472 rake secret
473 cd configcd
474 ls
475 vi secrets.yml
476 cd
477 cd /var/www/jojorion
478 rake secret
479 cd /config
480 cd config/
481 ls
482 cd secrets.yml
483 vi secrets.yml
484 cd
485 cd /var
486 sudo chmod 755 www
487 cd www/
488 cd jojorion
489 RAILS_ENV=production bundle exec rails db:create
490 sudo vim /etc/environment
491 cd config
492 ls
493 cd secrets.yml
494 vi secrets.yml
495 cd
496 cd /var
497 sudo chmod 755 www
498 cd www/
499 cd jojorion/
500 RAILS_ENV=production bundle exec rails db:create
501 cd
502 cd /var/www/jojorion/current
503 cd /var/www/jojorion/
504 bundle exec rake db:create RAILS_ENV=production
505 ls -a
506 sudo chown ec2-user:ec2-user .
507 bundle exec rake db:create RAILS_ENV=production
508 RAILS_ENV=production bundle exec rails db:create
509 bundle install
510 RAILS_ENV=production bundle exec rails db:create
511 sudo chown ec2-user:ec2-user .
512 ls -a
513 history
514 sudo vim /etc/environment
515 cd config
516 ls
517 vi
518 vi secrets.yml
519 cd
520 cd /var/www/jojorion
521 RAILS_ENV=production bundle exec rails db:create
522 ls
523 cd bin
524 ls
525 touch railscredentials
526 vi railscredentials
527 ls
528 rm -rf railscredentials
529 ls
530 cd
531 cd /var/www/jojorion
532 EDITOR="vi" bin/rails credentials:edit
533 EDITOR="vi" bin/rails credentials:show
534 cd bin
535 ls
536 credentials.yml.enc
537 cd credentials.yml.enc
538 cd
539 cd /var/www
540 cd /jojorion
541 cd jojorion/
542 cd config
543 ls
544 vi credentials.yml.enc
545 vi master.key
546 cd
547 cd var/www/jojorion/
548 cd /var/www/jojorion
549 EDITOR="vi" bin/rails credentials:show
550 history
551 EDITOR="vi" bin/rails credentials:edit -e production
552 ls -ltr config/credentials
553 RAILS_ENV=production bundle exec rails db:create
554 cd bin
555 ls
556 cd
557 cd /var/www/jojorion/config
558 ls
559 vi credentials
560 xs
561 cd
562 cd /var/www/jojorion
563 cd credentials bin
564 cp -r config/credentials bin
565 cd bin
566 ls
567 vi credentials
568 cd
569 cd /var/www/jojorion
570 cd config
571 ls
572 vi credentials.yml.enc
573 cd
574 cd /var/www/jojorion
575 cp config/credentials.yml.enc bin
576 cd config
577 ls
578 cd
579 cd /var/www/jojorion/bin
580 ls
581 cd
582 cd /var/www/jojorion/
583 RAILS_ENV=production bundle exec rails db:create
584 history
585 cd config
586 ls
587 vi secrets.yml
588 vi credentials.yml.enc
589 vi secrets.yml
590 vi credentials
591 cd
592 cd /var/www/jojorion
593 RAILS_ENV=production bundle exec rails db:create
594 history
595 mysql --version
596 ls
597 docker-compose run web rails db:create
598 vi docker-compose.yml
599 vi Dockerfile
600 cd config
601 ls
602 vi database.yml
603 cd
604 cd /var/www/jojojtion
605 cd /var/www/jojorion
606 ls
607 vi Gemfile
608 bundle instll
609 bundle install
610 vi database.yml
611 cd config
612 ls
613 vi database.yml
614 cd
615 cd /var/www/jojorion/
616 sudo yum install -y docker
617 sudo service docker start
618 sudo usermod -G docker ec2-user
619 exit
620 cd /var/www
621 cd
622 cd /var
623 sudo chmod 755 www
624 cd www/
625 sudo git clone https://github.com/jojo232/cloud9.git
626 ls
627 cd cloud9
628 gem install bubler
629 gem install bundler
630 vim .gemrc
631 cd
632 vim .gemrc
633 rails -v
634 ruby -v
635 gem install rails -v 6.1.4
636 cd /var/www/cloud9
637 bundle install
638 sudo chown ec2-user:ec2-user .
639 bundle install
640 sudo chown -R ec2-user:ec2-user .
641 bundle install
642 cd
643 ls
644 cd /var/www
645 cd jojorion/
646 EDITOR=vim bin/rails credentials:edi
647 EDITOR=vim bin/rails credentials:edit
648 vim config/master.key
649 RAILS_ENV=poroduction bundle exec rails db:create
650 ls
651 vi Dockerfile
652 cd config
653 ls
654 rm -rf secrets.yml
655 ls
656 rm -rf credentials.yml.enc
657 ls
658 rm -rf master.key
659 ls
660 vi database.yml
661 cd
662 cd /var/www/jojorion
663 RAILS_ENV=poroduction bundle exec rails db:create
664 EDITOR=vim bin/rails credentials:edit
665 RAILS_ENV=poroduction bundle exec rails db:create
666 vim config/master.key
667 RAILS_ENV=poroduction bundle exec rails db:create
668 cd
669 cd /var/www/cloud9
670 ls
671 bundle exec rails webpacker:install
672 EDITOR=vim bin/rails credentials:edit
673 bundle install
674 exit
675 cd /var/www
676 cd
677 cd /var
678 sudo chmod 755 www
679 cd cloud9
680 cd www/cloud9
681 bundle install
682 sudo chown -R ec2-user:ec2-user .
683 bundle install
684 cd /var/www/jojorion
685 ls -ltr config/
686 docker ps
687 cd
688 docker ps
689 sudo yum update
690 sudo yum update -y
691 sudo amazon-linux-extras install -y docker
692 amazon-linux-extras | grep docker
693 sudo systemctl start docker
694 systemctl status docker
695 sudo systemctl enable docker
696 systemctl is-enabled docker
697 grep docker /etc/group
698 sudo usermod -a -G docker ec2-user
699 exit
700 docker info
701 VER=1.29.2
702 $ sudo curl -L https://github.com/docker/compose/releases/download/${VER}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
703 $sudo curl -L https://github.com/docker/compose/releases/download/${VER}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
704 sudo chmod +x /usr/local/bin/docker-compose
705 sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
706 docker-compose --version
707 cd /var/www/jojorion
708 RAILS_ENV=production bundle exec rails db:create
709 cd
710 cd /var
711 sudo shmod 755 www
712 sudo chmod 755 www
713 cd /www
714 cd www/
715 jojorion
716 cd jojorion
717 RAILS_ENV=production bundle exec rails db:create
718 ls -ltr config/
719 cd config
720 ls
721 vi master.key
722 rm -rf master.key
723 ls
724 cd
725 cd /var
726 sudo chmod 755 www
727 cd /www
728 cd www/
729 cd jojorion/
730 sudo chown -R ec2-user .
731 sudo chown ec2-user:ec2-user .
732 EDITOR=vim bin/rails credentials:edit
733 cd config
734 ls
735 vi master.key
736 cd
737 cd /var
738 sudo chmod 755 www
739 cd www/
740 cd jojorion/
741 RAILS_ENV=production bundle exec rails db:create
742 ls -ltr config/
743 cd
744 ls
745 ls -a
746 cd /var
747 cd /www/
748 cd www/
749 ls
750 cd cloud9
751 RAILS_ENV=production bundle exec rails db:create
752 budle install
753 bundle install
754 sudo yum -y install gcc make openssl-devel readline-devel sqlite-devel gcc-c++
755 bundle install
756 gcc --version
757 bundle install
758 cd /var
759 /
760 cd www/jojorion
761 cd
762 cd
763 cd /var/www/cloud9
764 bundle install
765 cd
766 cd /var/www/cloud9
767 cd
768 cd /var/www/jojorion
769 cdbcofig
770 cd config
771 ls
772 cd credentials
773 ls
774 cd /var/www/jojorion/config
775 vicredentials.yml.enc
776 vi credentials.yml.enc
777 cd
778 cd /var/www/cloud9
779 bundle install
780 sudo chown -R ec2-user .
781 bundle install
782 history
783 sudo yum -y install gcc make openssl-devel readline-devel sqlite-devel gcc-c++
784 EDITOR=vim bin/rails credentials:edit
785 cd
786 cd /var/www/jojorion
787 cd config
788 vi EDITOR="vi" bin/rails credentials:edit
789 ls
790 cd
791 cd /var/www/jojorion
792 vi EDITOR="vi" bin/rails credentials:edit
793 EDITOR="vi" bin/rails credentials:edit
794 history

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0