Hello,
I am trying to deploy my Vapor project to AWS. I am following the instructions in Chapter 34 of the Kodeco book.
I am currently at the “Setting up your application” step. I believe all the previous steps have been successfully completed.
I cloned by project to the AWS instance running Ubuntu 20.04, changed directories then tried to run the build command but got an error:
Command
swift build -c release --enable-test-discovery
Output
error: 'leaf': the package manifest at '/home/ubuntu/kevinfrenchcom/website/.build/checkouts/leaf/Package.swift' cannot be accessed (/home/ubuntu/kevinfrenchcom/website/.build/checkouts/leaf/Package.swift doesn't exist in file system)
error: 'vapor': the package manifest at '/home/ubuntu/kevinfrenchcom/website/.build/checkouts/vapor/Package.swift' cannot be accessed (/home/ubuntu/kevinfrenchcom/website/.build/checkouts/vapor/Package.swift doesn't exist in file system)
error: 'leaf': the package manifest at '/home/ubuntu/kevinfrenchcom/website/.build/checkouts/leaf/Package.swift' cannot be accessed (/home/ubuntu/kevinfrenchcom/website/.build/checkouts/leaf/Package.swift doesn't exist in file system)
error: 'vapor': the package manifest at '/home/ubuntu/kevinfrenchcom/website/.build/checkouts/vapor/Package.swift' cannot be accessed (/home/ubuntu/kevinfrenchcom/website/.build/checkouts/vapor/Package.swift doesn't exist in file system)
When I run ls in the same directory I get the following output:
Dockerfile Package.resolved Package.swift Public Resources Sources Tests docker-compose.yml fly.toml
I am able to run the project on my local machine (2023 M2 Mac Mini).
Running just “swift build” on the AWS instance produces the same error output as mentioned above.
Can someone help me with this error?
Thank you,
Kevin
!