Giter Club home page Giter Club logo

Comments (4)

iamssen avatar iamssen commented on May 30, 2024

This is not a node application. just run yarn run app:build. you can get the static files such as js and html

from anchor-web-app.

dpny518 avatar dpny518 commented on May 30, 2024

Thank you, after running I get these files in app
build scripts tsconfig.script.json vite.config.ts
index.html script.sh vercel-build-ignore.sh
package.json src vercel-ignore-storybook.sh
public tsconfig.json vercel.json

and these in app/build
assets favicon.ico fetchWorker.js logo.png manifest.json robots.txt

the index.html file really does not have anything except wallet connect

what is the correct root path for /etc/nginx/sites-available/default server {
listen 80 default_server;
root /var/www/anchor-web-app/app/build;
server_name [your.domain.com] [your other domain if you want to];
index index.html index.htm;
location / {
}
}

from anchor-web-app.

dpny518 avatar dpny518 commented on May 30, 2024

here is my nginx config but still doesn't work

server {
   listen 80 default_server;
   root /var/www/anchor-web-app/app/build;
   server_name app.example.com;
   index index.html index.htm;
   location / {
   }



server {
   listen *:443 ssl;
   root /var/www/anchor-web-app/app;
   server_name app.example.com;
   ssl_certificate /etc/ssl/localhost+1.pem; 
   ssl_certificate_key /etc/ssl/localhost+1-key.pem;
}

from anchor-web-app.

dpny518 avatar dpny518 commented on May 30, 2024

ok the files end up being in app/build
the reason I couldn't see it before was the build kept failing due to node memory issues so this solves it

export NODE_OPTIONS=--max_old_space_size=4096

So to correctly build

cd anchor-web-app && export NODE_OPTIONS=--max_old_space_size=4096 && yarn install && yarn run app:build

Then static files are in

anchor-web-app/app/build/

from anchor-web-app.

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.