ProfessorAmanda / econsimulations

This repository provides the code underlying simulations for teaching statistics and econometrics. The project site, which includes teaching materials as well as the link to the simulations, is located here: https://amandagreggeconomics.com/statistics-simulations-project/
Other
1 stars 0 forks source link

Deployment #293

Open waynew99 opened 2 years ago

waynew99 commented 2 years ago

To make sure we don't mess up the current repository when trying to make deployment work, I make a separate repository to experiment with the deployment process. I will update here the progress.

https://github.com/waynew99/econsimstest

waynew99 commented 2 years ago

Good news! After making several small tweaks, I've successfully deployed on the temporary testing repository. It can be visited at: https://waynew99.github.io/econsimstest.

We can schedule a meeting sometime to live deploy this official repository.

waynew99 commented 2 years ago

Hi Amanda (@ProfessorAmanda),

I just fixed the deployment issue and successfully deployed the current version! I also just found a bug loading the data from csv in the deployed website, and made a fix on the master branch. You can try deploying it with the steps below. Please let me know if problems occur!

Steps:

  1. Create a new Pull Request from master to deployment
  2. Wait for the GitHub Action checks to finish. (It is shown as yellow progress icon above the "Merge" button on the pull request's page. The "Merge" button will turn grey while the checks are performed)
  3. Once the checks pass and turn green, hit the green "Merge" button to merge the pull request into deployment branch. This will trigger a GitHub Pages deployment, which can be seen under the Actions page as a task named "pages build and deployment".
  4. Once the deployment task is finished (turns green), the deployment is done and the new version of website can be visited.
ProfessorAmanda commented 2 years ago

Thanks, Wayne! I'll give it a whirl!

ProfessorAmanda commented 2 years ago

Hi Wayne, sorry to bother you, but something is all screwed up. Do you have any advice? Screen Shot 2022-08-03 at 12 18 23 PM

waynew99 commented 2 years ago

Hmmm... sorry that I don't have a solution off the top of my head. I'll do some search and get back to you ASAP!

waynew99 commented 2 years ago

Shall we try deleting the package-lock.json file in the current foler, then running npm install --legacy-peer-deps again?

ProfessorAmanda commented 2 years ago

Sure. Send me some instructions, and I'll give it a shot!

waynew99 commented 2 years ago

I think we can try deleting the package-lock.json file in the current foler, then running npm install --legacy-peer-deps again.

ProfessorAmanda commented 2 years ago

You mean, in the online repo, or in my local folder?

Amanda G. Gregg Associate Professor of Economics, Middlebury College Join My Personal Zoom Roomhttps://middlebury.zoom.us/my/agregg?pwd=OWlGMmZMSWJaUkowRG5DUWJtRm9CQT09 (Password: EconHist) Office: Farrell House 101 Office Phone: (802) 443 - 3419 Pronouns: she/her/hers


From: Wayne Wang @.> Sent: Wednesday, August 3, 2022 3:34 PM To: ProfessorAmanda/econsimulations @.> Cc: Gregg, Amanda G. @.>; Mention @.> Subject: Re: [ProfessorAmanda/econsimulations] Deployment (Issue #293)

I think we can try deleting the package-lock.json file in the current foler, then running npm install --legacy-peer-deps again.

— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FProfessorAmanda%2Feconsimulations%2Fissues%2F293%23issuecomment-1204390792&data=05%7C01%7Cagregg%40middlebury.edu%7C8de153dee623434e77d608da7587344d%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637951520796556016%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OSpRhlzeTA1VUOv9BqDygTos1RjCSwR3foqH%2Bwzp6Yc%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMWGM7HFJ5M6IUOHPPBCZGTVXLCU3ANCNFSM52DDFYDQ&data=05%7C01%7Cagregg%40middlebury.edu%7C8de153dee623434e77d608da7587344d%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637951520796556016%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=P%2B%2BqkprK%2BLxqcIGEBpQ1xAELRnRgcJfWG2ycgfpP%2FHU%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

waynew99 commented 2 years ago

Oh sorry, I meant the local folder.

ProfessorAmanda commented 2 years ago

Got it! Just a sec...

Amanda G. Gregg Associate Professor of Economics, Middlebury College Join My Personal Zoom Roomhttps://middlebury.zoom.us/my/agregg?pwd=OWlGMmZMSWJaUkowRG5DUWJtRm9CQT09 (Password: EconHist) Office: Farrell House 101 Office Phone: (802) 443 - 3419 Pronouns: she/her/hers


From: Wayne Wang @.> Sent: Wednesday, August 3, 2022 3:36 PM To: ProfessorAmanda/econsimulations @.> Cc: Gregg, Amanda G. @.>; Mention @.> Subject: Re: [ProfessorAmanda/econsimulations] Deployment (Issue #293)

Oh sorry, I meant the local folder.

— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FProfessorAmanda%2Feconsimulations%2Fissues%2F293%23issuecomment-1204392525&data=05%7C01%7Cagregg%40middlebury.edu%7C8f1461182cd14703345608da7587750a%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637951521895296803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MJ2pdAAnaWOyz1Lv4VzyTgLzGSFhaVW8bs8nDbP3%2FLE%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMWGM7BM3C5ORUXATZW26ODVXLC3VANCNFSM52DDFYDQ&data=05%7C01%7Cagregg%40middlebury.edu%7C8f1461182cd14703345608da7587750a%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637951521895296803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zndUvr3xTEzBCVki71OMfkoCAW%2FQsFssQB2LUaodVb8%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

ProfessorAmanda commented 2 years ago

Boom! Okay I'm going to try deploying now...

ProfessorAmanda commented 2 years ago

Animation is back! Nice work :)

ProfessorAmanda commented 2 years ago

Awesome! The only page that didn't work for me is Sample Distribution of OLS Estimators (404 not found). It's really great to have separate addresses for each module.

Amanda G. Gregg Assistant Professor of Economics, Middlebury College Join My Personal Zoom Roomhttps://middlebury.zoom.us/my/agregg?pwd=OWlGMmZMSWJaUkowRG5DUWJtRm9CQT09 (Password: EconHist) Office: Farrell House 101 Office Phone: (802) 443 - 3419 Pronouns: she/her/hers


From: Wayne Wang @.> Sent: Wednesday, June 29, 2022 10:30 AM To: ProfessorAmanda/econsimulations @.> Cc: Subscribed @.***> Subject: Re: [ProfessorAmanda/econsimulations] Test deployment of Next.js (Issue #293)

Good news! After making several small tweaks, I've successfully deployed on the temporary testing repository. It can be visited at: https://waynew99.github.io/econsimstesthttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwaynew99.github.io%2Feconsimstest&data=05%7C01%7Cagregg%40middlebury.edu%7C15061fb19d124c7cecb108da59dbe411%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637921098202371247%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5d5vZlxt3LTj%2BphzkN0uzTgwhiPJsJZ%2FVdv6ZV5%2FBm4%3D&reserved=0.

We can schedule a meeting sometime to live deploy this official repository.

— Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FProfessorAmanda%2Feconsimulations%2Fissues%2F293%23issuecomment-1170057816&data=05%7C01%7Cagregg%40middlebury.edu%7C15061fb19d124c7cecb108da59dbe411%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637921098202371247%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0V5BlnxfYP5UBxK%2Bbm3RetggBfq2N4jmAPCvfNxQhYc%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMWGM7A3DSNKEPMGGZOXVWLVRRMXTANCNFSM52DDFYDQ&data=05%7C01%7Cagregg%40middlebury.edu%7C15061fb19d124c7cecb108da59dbe411%7Ca1bb0a191576421dbe93b3a7d4b6dcaa%7C1%7C0%7C637921098202371247%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=INWO7ka3K0bbX5ikziYHqBQqSQ%2B1RtDQn39tgZEvnJs%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>