Skip to content

Commit

Permalink
fix: docker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwupark committed Jan 31, 2024
1 parent d1130a0 commit abc0c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set .yml for main
run: |
# Create resources directory if it doesn't exist
mkdir ./src/main/resources
mkdir -p ./src/main/resources
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.MAIN_DATABASE_YML }}" >> ./application.yml
Expand Down
20 changes: 1 addition & 19 deletions src/main/java/umc/meme/shop/ShopApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,12 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;

import java.io.IOException;


@SpringBootApplication
@EnableJpaAuditing
public class ShopApplication {

public static void main(String[] args) throws IOException {
ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();

// Resolve the resource for the current file
Resource resource = resolver.getResource("classpath:");

// Get the absolute path of the current file
String absolutePath = resource.getFile().getAbsolutePath();

// Print the absolute path
System.out.println("Absolute path to the current file: " + absolutePath);

SpringApplication.run(ShopApplication.class, args);
}
public static void main(String[] args) { SpringApplication.run(ShopApplication.class, args); }

}

0 comments on commit abc0c02

Please sign in to comment.