Giter VIP home page Giter VIP logo

Comments (10)

teppei696 avatar teppei696 commented on August 20, 2024

とりあえずhomeディレクトリに落として起動するようにするか

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

鍵作って
ssh-keygen -t rsa -b 2048

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

Githubに登録して

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

homeディレクトリにworkspace作ってそこにclone

$ mkdir workspace
$ cd workspace/
$ git clone -b main https://github.com/codeforosaka/covid19-map.git
$ cd covid19-map/

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

今のうちにsecret.envをおいておく

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

何も考えずにnode.js、yarnをインストール

$ sudo curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -

## Installing the NodeSource Node.js 16.x repo...


## Inspecting system...

+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release || rpm -q --whatprovides fedora-release
+ uname -m

## Confirming "el7-x86_64" is supported...

+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'

## Downloading release setup RPM...

+ mktemp
+ curl -sL -o '/tmp/tmp.NqboSwGmxe' 'https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'

## Installing release setup RPM...

+ rpm -i --nosignature --force '/tmp/tmp.NqboSwGmxe'

## Cleaning up...

+ rm -f '/tmp/tmp.NqboSwGmxe'

## Checking for existing installations...

+ rpm -qa 'node|npm' | grep -v nodesource

## Run `sudo yum install -y nodejs` to install Node.js 16.x and npm.
## You may run dnf if yum is not available:
     sudo dnf install -y nodejs
## You may also need development tools to build native addons:
     sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
     sudo yum install yarn

$ sudo yum install -y nodejs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * elrepo: ftp.ne.jp
 * epel: ftp.iij.ad.jp
nodesource                                                                                                            | 2.5 kB  00:00:00     
nodesource/x86_64/primary_db                                                                                          |  42 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:16.14.2-1nodesource will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================
 Package                     Arch                        Version                                       Repository                       Size
=============================================================================================================================================
Installing:
 nodejs                      x86_64                      2:16.14.2-1nodesource                         nodesource                       31 M

Transaction Summary
=============================================================================================================================================
Install  1 Package

Total download size: 31 M
Installed size: 86 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/nodesource/packages/nodejs-16.14.2-1nodesource.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 34fa74dd: NOKEY
Public key for nodejs-16.14.2-1nodesource.x86_64.rpm is not installed
nodejs-16.14.2-1nodesource.x86_64.rpm                                                                                 |  31 MB  00:00:00     
Retrieving key from file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
Importing GPG key 0x34FA74DD:
 Userid     : "NodeSource <[email protected]>"
 Fingerprint: 2e55 207a 95d9 944b 0cc9 3261 5ddb e8d4 34fa 74dd
 Package    : nodesource-release-el7-1.noarch (installed)
 From       : /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : 2:nodejs-16.14.2-1nodesource.x86_64                                                                                       1/1 
  Verifying  : 2:nodejs-16.14.2-1nodesource.x86_64                                                                                       1/1 

Installed:
  nodejs.x86_64 2:16.14.2-1nodesource                                                                                                        

Complete!
$ node -v
v16.14.2
$ npm -v
8.5.0
$ curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
[yarn]
name=Yarn Repository
baseurl=https://dl.yarnpkg.com/rpm/
enabled=1
gpgcheck=1
gpgkey=https://dl.yarnpkg.com/rpm/pubkey.gpg
$ sudo yum install yarn
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * elrepo: ftp.ne.jp
 * epel: ftp.iij.ad.jp
yarn                                                                                                                  | 2.9 kB  00:00:00     
yarn/primary_db                                                                                                       |  23 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package yarn.noarch 0:1.22.18-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================
 Package                        Arch                             Version                                Repository                      Size
=============================================================================================================================================
Installing:
 yarn                           noarch                           1.22.18-1                              yarn                           1.2 M

Transaction Summary
=============================================================================================================================================
Install  1 Package

Total download size: 1.2 M
Installed size: 5.1 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/yarn/packages/yarn-1.22.18-1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 6963f07f: NOKEY--:--:-- ETA 
Public key for yarn-1.22.18-1.noarch.rpm is not installed
yarn-1.22.18-1.noarch.rpm                                                                                             | 1.2 MB  00:00:00     
Retrieving key from https://dl.yarnpkg.com/rpm/pubkey.gpg
Importing GPG key 0x6963F07F:
 Userid     : "Yarn RPM Packaging <[email protected]>"
 Fingerprint: 9a6f 73f3 4beb 7473 4d8c 6914 9cbb b558 6963 f07f
 From       : https://dl.yarnpkg.com/rpm/pubkey.gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : yarn-1.22.18-1.noarch                                                                                                     1/1 
  Verifying  : yarn-1.22.18-1.noarch                                                                                                     1/1 

Installed:
  yarn.noarch 0:1.22.18-1                                                                                                                    

Complete!
$ which yarn
/usr/bin/yarn
$ yarn -v
1.22.18

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

とりあえず起動してみる

$ yarn dev

・・・
ℹ Waiting for file changes                                                                                                         14:09:49
ℹ Memory usage: 169 MB (RSS: 291 MB)                                                                                               14:09:49
ℹ Listening on: http://localhost:3000/                                                                                             14:09:49

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

nginxでproxyするようにして見てみると見えない・・・
一旦5000ポートで見えるようにして確認してみるか

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

くっそ。HTTPSじゃないと表示されなかった。。。
時間を無駄にしてしまsった。

SSL証明書発行して、nginxも設定して、アクセスしたら動いた

from covid19-map.

teppei696 avatar teppei696 commented on August 20, 2024

つーかこれでみえるやん。
https://covid19-osaka-map.info/

from covid19-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.